8000 [Form] fixed flawed condition · rfanjul/symfony@aa58330 · GitHub
[go: up one dir, main page]

Skip to content

Commit aa58330

Browse files
committed
[Form] fixed flawed condition
1 parent 74961c8 commit aa58330

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/Form/Extension/Validator/Validator/DelegatingValidator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ public function validate(FormInterface $form)
7676
$child->addError($error);
7777
}
7878
}
79-
} elseif ($violations = $this->validator->validate($form)) {
79+
} elseif (count($violations = $this->validator->validate($form))) {
8080
foreach ($violations as $violation) {
8181
$propertyPath = $violation->getPropertyPath();
8282
$template = $violation->getMessageTemplate();

0 commit comments

Comments
 (0)
0