Skip to content

Commit 0479729

Browse files
Merge branch '5.0'
* 5.0: Use `::class` constants instead of `__NAMESPACE__` when possible
2 parents b7f0700 + 4fa0454 commit 0479729

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)