Skip to content

Commit 0f74ad1

Browse files
[validator] Fix deprecation
1 parent a0af554 commit 0f74ad1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Tests/Constraints/ExpressionLanguageSyntaxValidatorTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,15 @@
1414
use Symfony\Component\ExpressionLanguage\ExpressionLanguage;
1515
use Symfony\Component\Validator\Constraints\ExpressionLanguageSyntax;
1616
use Symfony\Component\Validator\Constraints\ExpressionLanguageSyntaxValidator;
17+
use Symfony\Component\Validator\ConstraintValidatorInterface;
1718
use Symfony\Component\Validator\Test\ConstraintValidatorTestCase;
1819

1920
/**
2021
* @group legacy
2122
*/
2223
class ExpressionLanguageSyntaxValidatorTest extends ConstraintValidatorTestCase
2324
{
24-
protected function createValidator(): ExpressionLanguageSyntaxValidator
25+
protected function createValidator(): ConstraintValidatorInterface
2526
{
2627
return new ExpressionLanguageSyntaxValidator(new ExpressionLanguage());
2728
}

0 commit comments

Comments
 (0)