Fix the detection of the deprecated usage of the ValidationListener
This commit is contained in:
parent
eca3e37225
commit
de04070ba8
@ -46,7 +46,7 @@ class ValidationListener implements EventSubscriberInterface
|
||||
throw new \InvalidArgumentException('Validator must be instance of Symfony\Component\Validator\Validator\ValidatorInterface or Symfony\Component\Validator\ValidatorInterface');
|
||||
}
|
||||
|
||||
if ($validator instanceof LegacyValidatorInterface) {
|
||||
if (!$validator instanceof ValidatorInterface) {
|
||||
@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);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user