-
-
Notifications
You must be signed in to change notification settings - Fork 9.7k
Description
Symfony version(s) affected
6.x and 7.x
Description
I think the arguments are the wrong way around? The message made sense in 5.4, but since 6.0 it seems to be the wrong way around.
5.4
symfony/src/Symfony/Component/Security/Core/Validator/Constraints/UserPasswordValidator.php
Line 70 in 2e85f07
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)); |
symfony/src/Symfony/Component/Security/Core/Validator/Constraints/UserPasswordValidator.php
Line 75 in 2e85f07
trigger_deprecation('symfony/security-core', '5.3', 'Returning a string from "getSalt()" without implementing the "%s" interface is deprecated, the "%s" class should implement it.', LegacyPasswordAuthenticatedUserInterface::class, get_debug_type($user)); |
6.0 and up
symfony/src/Symfony/Component/Security/Core/Validator/Constraints/UserPasswordValidator.php
Line 56 in b101b71
throw new ConstraintDefinitionException(sprintf('The "%s" class must implement the "%s" interface.', PasswordAuthenticatedUserInterface::class, get_debug_type($user))); |
7.0 and up
symfony/src/Symfony/Component/Security/Core/Validator/Constraints/UserPasswordValidator.php
Line 55 in df81998
throw new ConstraintDefinitionException(sprintf('The "%s" class must implement the "%s" interface.', PasswordAuthenticatedUserInterface::class, get_debug_type($user))); |
How to reproduce
n/a
Possible Solution
No response
Additional Context
No response