Skip to content

Commit c6405b8

Browse files
[Validator] Improve return types in tests
1 parent a084c35 commit c6405b8

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Tests/Extension/Validator/Constraints/FormValidatorTest.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@
3030
use Symfony\Component\Validator\Constraints\NotBlank;
3131
use Symfony\Component\Validator\Constraints\NotNull;
3232
use Symfony\Component\Validator\Constraints\Valid;
33-
use Symfony\Component\Validator\ConstraintValidatorInterface;
3433
use Symfony\Component\Validator\Context\ExecutionContext;
3534
use Symfony\Component\Validator\Test\ConstraintValidatorTestCase;
3635
use Symfony\Component\Validator\Validation;
@@ -715,7 +714,7 @@ public function testCauseForNotAllowedExtraFieldsIsTheFormConstraint()
715714
$this->assertSame($constraint, $context->getViolations()->get(0)->getConstraint());
716715
}
717716

718-
protected function createValidator(): ConstraintValidatorInterface
717+
protected function createValidator(): FormValidator
719718
{
720719
return new FormValidator();
721720
}

0 commit comments

Comments
 (0)