Skip to content

Commit 93c8515

Browse files
stofnicolas-grekas
authored andcommitted
[Validator] Add the type for ConstraintValidatorTestCase::createValidator
1 parent 86d3616 commit 93c8515

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Tests/Validator/Constraints/UserPasswordValidatorTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
use Symfony\Component\Security\Core\User\UserInterface;
1919
use Symfony\Component\Security\Core\Validator\Constraints\UserPassword;
2020
use Symfony\Component\Security\Core\Validator\Constraints\UserPasswordValidator;
21+
use Symfony\Component\Validator\ConstraintValidatorInterface;
2122
use Symfony\Component\Validator\Exception\ConstraintDefinitionException;
2223
use Symfony\Component\Validator\Test\ConstraintValidatorTestCase;
2324

@@ -44,7 +45,7 @@ abstract class UserPasswordValidatorTest extends ConstraintValidatorTestCase
4445
*/
4546
protected $hasherFactory;
4647

47-
protected function createValidator()
48+
protected function createValidator(): ConstraintValidatorInterface
4849
{
4950
return new UserPasswordValidator($this->tokenStorage, $this->hasherFactory);
5051
}

0 commit comments

Comments
 (0)