8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 74961c8 commit aa58330Copy full SHA for aa58330
src/Symfony/Component/Form/Extension/Validator/Validator/DelegatingValidator.php
@@ -76,7 +76,7 @@ public function validate(FormInterface $form)
76
$child->addError($error);
77
}
78
79
- } elseif ($violations = $this->validator->validate($form)) {
+ } elseif (count($violations = $this->validator->validate($form))) {
80
foreach ($violations as $violation) {
81
$propertyPath = $violation->getPropertyPath();
82
$template = $violation->getMessageTemplate();
0 commit comments