You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ConstraintViolation::getConstraint() must not expect to provide a
constraint as long as Symfony\Component\Validator\ExecutionContext
exists (before 3.0)
Copy file name to clipboardExpand all lines: Extension/Validator/EventListener/ValidationListener.php
+2-1Lines changed: 2 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -66,7 +66,8 @@ public function validateForm(FormEvent $event)
66
66
foreach ($violationsas$violation) {
67
67
// Allow the "invalid" constraint to be put onto
68
68
// non-synchronized forms
69
-
$allowNonSynchronized = $violation->getConstraint() instanceof Form && Form::NOT_SYNCHRONIZED_ERROR === $violation->getCode();
69
+
// ConstraintViolation::getConstraint() must not expect to provide a constraint as long as Symfony\Component\Validator\ExecutionContext exists (before 3.0)
0 commit comments