lib/Parameters/ParameterBuilder.php
private function validateConstraints(array $constraints): bool
    {
        foreach ($constraints as $constraint) {
            if (!$constraint instanceof Closure && !$constraint instanceof Constraint) {
                return false;
            }
        }

        return true;
    }
private function validateConstraints(array $constraints): bool
    {
        foreach ($constraints as $constraint) {
            if (!$constraint instanceof Closure && !$constraint instanceof Constraint) {
                return false;
            }
        }

        return true;
    }
private function validateConstraints ( array $ constraints ) : bool { foreach ( $ constraints as $ constraint ) { if ( ! $ constraint instanceof Closure && ! $ constraint instanceof Constraint ) { return false ; } } return true ; }
Validates the list of constraints to be either a Symfony constraint or a closure.
Validates the list of constraints to be either a Symfony constraint or a closure .