Skip to content

Commit a084c35

Browse files
stofnicolas-grekas
authored andcommitted
[Validator] Add the type for ConstraintValidatorTestCase::createValidator
1 parent 1f39e5e commit a084c35

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Tests/Extension/Validator/Constraints/FormValidatorTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
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;
3334
use Symfony\Component\Validator\Context\ExecutionContext;
3435
use Symfony\Component\Validator\Test\ConstraintValidatorTestCase;
3536
use Symfony\Component\Validator\Validation;
@@ -714,7 +715,7 @@ public function testCauseForNotAllowedExtraFieldsIsTheFormConstraint()
714715
$this->assertSame($constraint, $context->getViolations()->get(0)->getConstraint());
715716
}
716717

717-
protected function createValidator()
718+
protected function createValidator(): ConstraintValidatorInterface
718719
{
719720
return new FormValidator();
720721
}

0 commit comments

Comments
 (0)