Skip to content

Commit 611bc10

Browse files
committed
fix: modify Exception message parameter order
1 parent 19cdb7d commit 611bc10

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
@@ -55,7 +55,7 @@ public function validate(mixed $password, Constraint $constraint)
5555
$user = $this->tokenStorage->getToken()->getUser();
5656

5757
if (!$user instanceof PasswordAuthenticatedUserInterface) {
58-
throw new ConstraintDefinitionException(sprintf('The "%s" class must implement the "%s" interface.', PasswordAuthenticatedUserInterface::class, get_debug_type($user)));
58+
throw new ConstraintDefinitionException(sprintf('The "%s" class must implement the "%s" interface.', get_debug_type($user), PasswordAuthenticatedUserInterface::class));
5959
}
6060

6161
$hasher = $this->hasherFactory->getPasswordHasher($user);

0 commit comments

Comments
 (0)