diff --git a/Tests/Constraints/ExpressionLanguageSyntaxValidatorTest.php b/Tests/Constraints/ExpressionLanguageSyntaxValidatorTest.php index bfd4336de..f44e606a4 100644 --- a/Tests/Constraints/ExpressionLanguageSyntaxValidatorTest.php +++ b/Tests/Constraints/ExpressionLanguageSyntaxValidatorTest.php @@ -14,6 +14,7 @@ use Symfony\Component\ExpressionLanguage\ExpressionLanguage; use Symfony\Component\Validator\Constraints\ExpressionLanguageSyntax; use Symfony\Component\Validator\Constraints\ExpressionLanguageSyntaxValidator; +use Symfony\Component\Validator\ConstraintValidatorInterface; use Symfony\Component\Validator\Test\ConstraintValidatorTestCase; /** @@ -21,7 +22,7 @@ */ class ExpressionLanguageSyntaxValidatorTest extends ConstraintValidatorTestCase { - protected function createValidator(): ExpressionLanguageSyntaxValidator + protected function createValidator(): ConstraintValidatorInterface { return new ExpressionLanguageSyntaxValidator(new ExpressionLanguage()); }