Skip to content

Commit bdc2aac

Browse files
committed
[Security\Core] Fix wrong deprecation message in UserPasswordValidator
1 parent 525d088 commit bdc2aac

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
@@ -67,7 +67,7 @@ public function validate($password, Constraint $constraint)
6767
}
6868

6969
if (!$user instanceof PasswordAuthenticatedUserInterface) {
70-
trigger_deprecation('symfony/security-core', '5.3', 'Using the "%s" validation constraint is deprecated.', PasswordAuthenticatedUserInterface::class, get_debug_type($user), UserPassword::class);
70+
trigger_deprecation('symfony/security-core', '5.3', 'Using the "%s" validation constraint without implementing the "%s" interface is deprecated, the "%s" class should implement it.', UserPassword::class, PasswordAuthenticatedUserInterface::class, get_debug_type($user));
7171
}
7272

7373
$salt = $user->getSalt();

0 commit comments

Comments
 (0)