File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
Tests/Extension/Validator/Constraints Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change 30
30
use Symfony \Component \Validator \Constraints \NotBlank ;
31
31
use Symfony \Component \Validator \Constraints \NotNull ;
32
32
use Symfony \Component \Validator \Constraints \Valid ;
33
+ use Symfony \Component \Validator \ConstraintValidatorInterface ;
33
34
use Symfony \Component \Validator \Context \ExecutionContext ;
34
35
use Symfony \Component \Validator \Test \ConstraintValidatorTestCase ;
35
36
use Symfony \Component \Validator \Validation ;
@@ -714,7 +715,7 @@ public function testCauseForNotAllowedExtraFieldsIsTheFormConstraint()
714
715
$ this ->assertSame ($ constraint , $ context ->getViolations ()->get (0 )->getConstraint ());
715
716
}
716
717
717
- protected function createValidator ()
718
+ protected function createValidator (): ConstraintValidatorInterface
718
719
{
719
720
return new FormValidator ();
720
721
}
You can’t perform that action at this time.
0 commit comments