Closed
Description
Symfony version(s) affected: 5.3.0
Description
Regression in minor release.
symfony/security-core@v5.2.8...v5.3.0
A critical interface method was just removed instead of normal deprecation workflow and removal in next major.
How to reproduce
Implement UserInterface on vendor or project level, code against interface and now find yourself missing this contract (to be sure that method is available and implemented properly.
Possible Solution
Keep it in with deprecation only or add this method as soft annotation at least (as implementing code cannot do that post-factum now for the vendor interface).
Additional context
------ ------------------------------------------------------------------------
Line SprykerShop/Yves/CustomerPage/Plugin/Provider/CustomerUserProvider.php
------ ------------------------------------------------------------------------
58 Call to an undefined method
Symfony\Component\Security\Core\User\UserInterface::getUsername().
115 Call to an undefined method
Symfony\Component\Security\Core\User\UserInterface::getUsername().
------ ------------------------------------------------------------------------
The same seems to be true for Authentication/RememberMe/PersistentTokenInterface.php
class.