8000 Fix the detection of the deprecated usage of the ValidationListener · symfony/symfony@de04070 · GitHub
[go: up one dir, main page]

Skip to content

Commit de04070

Browse files
committed
Fix the detection of the deprecated usage of the ValidationListener
1 parent eca3e37 commit de04070

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/Form/Extension/Validator/EventListener/ValidationListener.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ public function __construct($validator, ViolationMapperInterface $violationMappe
4646
throw new \InvalidArgumentException('Validator must be instance of Symfony\Component\Validator\Validator\ValidatorInterface or Symfony\Component\Validator\ValidatorInterface');
4747
}
4848

49-
if ($validator instanceof LegacyValidatorInterface) {
49+
if (!$validator instanceof ValidatorInterface) {
5050
@trigger_error('Passing an instance of Symfony\Component\Validator\ValidatorInterface as argument to the '.__METHOD__.' method is deprecated since version 2.8 and will be removed in 3.0. Use an implementation of Symfony\Component\Validator\Validator\ValidatorInterface instead', E_USER_DEPRECATED);
5151
}
5252

0 commit comments

Comments
 (0)
0