private static function RecursiveValidator::testConstraints in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/validator/Validator/RecursiveValidator.php \Symfony\Component\Validator\Validator\RecursiveValidator::testConstraints()
1 call to RecursiveValidator::testConstraints()
- RecursiveValidator::validate in vendor/
symfony/ validator/ Validator/ RecursiveValidator.php - Validates a value against a constraint or a list of constraints.
File
- vendor/
symfony/ validator/ Validator/ RecursiveValidator.php, line 179
Class
- RecursiveValidator
- Recursive implementation of {@link ValidatorInterface}.
Namespace
Symfony\Component\Validator\ValidatorCode
private static function testConstraints($constraints) {
return null === $constraints || $constraints instanceof Constraint || is_array($constraints) && (0 === count($constraints) || current($constraints) instanceof Constraint);
}