Skip to content

Commit 4fa0454

Browse files
Merge branch '4.4' into 5.0
* 4.4: Use `::class` constants instead of `__NAMESPACE__` when possible
2 parents d92db3f + 52709ee commit 4fa0454

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)