Skip to content

Commit

Permalink
[validator] Fix deprecation
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolas-grekas committed Nov 25, 2022
1 parent a0af554 commit 0f74ad1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Tests/Constraints/ExpressionLanguageSyntaxValidatorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,15 @@
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;

/**
* @group legacy
*/
class ExpressionLanguageSyntaxValidatorTest extends ConstraintValidatorTestCase
{
protected function createValidator(): ExpressionLanguageSyntaxValidator
protected function createValidator(): ConstraintValidatorInterface
{
return new ExpressionLanguageSyntaxValidator(new ExpressionLanguage());
}
Expand Down

0 comments on commit 0f74ad1

Please sign in to comment.