Skip to content

Commit f01da51

Browse files
fre5hnicolas-grekas
authored andcommitted
Use ::class constants instead of __NAMESPACE__ when possible
1 parent bd9d148 commit f01da51

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Validator/Constraints/UserPasswordValidator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ public function __construct(TokenStorageInterface $tokenStorage, EncoderFactoryI
3636
public function validate($password, Constraint $constraint)
3737
{
3838
if (!$constraint instanceof UserPassword) {
39-
throw new UnexpectedTypeException($constraint, __NAMESPACE__.'\UserPassword');
39+
throw new UnexpectedTypeException($constraint, UserPassword::class);
4040
}
4141

4242
if (null === $password || '' === $password) {

0 commit comments

Comments
 (0)