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 6a9d39c commit 6c76813Copy full SHA for 6c76813
Extension/Validator/Constraints/FormValidator.php
@@ -48,7 +48,7 @@ public function validate($form, Constraint $constraint)
48
49
// Validate the data against its own constraints
50
if ($form->isRoot() && (\is_object($data) || \is_array($data))) {
51
- if (\is_array($groups) && \count($groups) > 0 || $groups instanceof GroupSequence && \count($groups->groups) > 0) {
+ if (($groups && \is_array($groups)) || ($groups instanceof GroupSequence && $groups->groups)) {
52
$validator->atPath('data')->validate($form->getData(), null, $groups);
53
}
54
0 commit comments