Skip to content

Commit b2d2d20

Browse files
Merge branch '3.4' into 4.3
* 3.4: Use `::class` constants instead of `__NAMESPACE__` when possible
2 parents 5c5f078 + 2c1f057 commit b2d2d20

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)