File tree Expand file tree Collapse file tree 1 file changed +0
-5
lines changed Expand file tree Collapse file tree 1 file changed +0
-5
lines changed Original file line number Diff line number Diff line change 1414use Symfony \Component \Validator \Constraint ;
1515use Symfony \Component \Validator \Constraints \GroupSequence ;
1616use Symfony \Component \Validator \Constraints \Traverse ;
17- use Symfony \Component \Validator \Constraints \Valid ;
1817use Symfony \Component \Validator \Exception \ConstraintDefinitionException ;
1918use Symfony \Component \Validator \Exception \GroupDefinitionException ;
2019
@@ -183,10 +182,6 @@ public function addConstraint(Constraint $constraint)
183182 throw new ConstraintDefinitionException (sprintf ('The constraint "%s" cannot be put on classes. ' , \get_class ($ constraint )));
184183 }
185184
186- if ($ constraint instanceof Valid) {
187- throw new ConstraintDefinitionException (sprintf ('The constraint "%s" cannot be put on classes. ' , \get_class ($ constraint )));
188- }
189-
190185 if ($ constraint instanceof Traverse) {
191186 if ($ constraint ->traverse ) {
192187 // If traverse is true, traversal should be explicitly enabled
You can’t perform that action at this time.
0 commit comments