Fix the detection of the deprecated usage of the ValidationListener

This commit is contained in:
Christophe Coevoet 2015-10-15 14:57:54 +02:00
parent eca3e37225
commit de04070ba8
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}