8000 fix: modify Exception message parameter order · symfony/symfony@4e1ba55 · GitHub
[go: up one dir, main page]

Skip to content

Commit 4e1ba55

Browse files
committed
fix: modify Exception message parameter order
1 parent 96941db commit 4e1ba55

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/Security/Core/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)
0