File tree 1 file changed +0
-5
lines changed
1 file changed +0
-5
lines changed Original file line number Diff line number Diff line change 14
14
use Symfony \Component \Validator \Constraint ;
15
15
use Symfony \Component \Validator \Constraints \GroupSequence ;
16
16
use Symfony \Component \Validator \Constraints \Traverse ;
17
- use Symfony \Component \Validator \Constraints \Valid ;
18
17
use Symfony \Component \Validator \Exception \ConstraintDefinitionException ;
19
18
use Symfony \Component \Validator \Exception \GroupDefinitionException ;
20
19
@@ -183,10 +182,6 @@ public function addConstraint(Constraint $constraint)
183
182
throw new ConstraintDefinitionException (sprintf ('The constraint "%s" cannot be put on classes. ' , \get_class ($ constraint )));
184
183
}
185
184
186
- if ($ constraint instanceof Valid) {
187
- throw new ConstraintDefinitionException (sprintf ('The constraint "%s" cannot be put on classes. ' , \get_class ($ constraint )));
188
- }
189
-
190
185
if ($ constraint instanceof Traverse) {
191
186
if ($ constraint ->traverse ) {
192
187
// If traverse is true, traversal should be explicitly enabled
You can’t perform that action at this time.
0 commit comments