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 3030use Symfony \Component \Validator \Constraints \NotBlank ;
3131use Symfony \Component \Validator \Constraints \NotNull ;
3232use Symfony \Component \Validator \Constraints \Valid ;
33+ use Symfony \Component \Validator \ConstraintValidatorInterface ;
3334use Symfony \Component \Validator \Context \ExecutionContext ;
3435use Symfony \Component \Validator \Test \ConstraintValidatorTestCase ;
3536use 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 }
You can’t perform that action at this time.
0 commit comments