8000 bug #59343 [Security] Adjust parameter order in exception message (Li… · symfony/symfony@70caa73 · GitHub
[go: up one dir, main page]

Skip to content

Commit 70caa73

Browse files
committed
bug #59343 [Security] Adjust parameter order in exception message (Link1515)
This PR was merged into the 6.4 branch. Discussion ---------- [Security] Adjust parameter order in exception message | Q | A | ------------- | --- | Branch? | 6.4 | Bug fix? | yes | New feature? | no | Deprecations? | no | Issues | Fix #59328 | License | MIT Commits ------- 4e1ba55 fix: modify Exception message parameter order
2 parents 96941db + 4e1ba55 commit 70caa73

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

+1-1
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