Closed
Description
Symfony version(s) affected: 4.2 - 4.4
Description
Similar to #26775, In https://github.com/symfony/symfony/blob/4.4/src/Symfony/Component/Security/Core/Authentication/Provider/RememberMeAuthenticationProvider.php#L50-L52.
TokenInterface::getUser()
returns string|object
, UserCheckerInterface::checkPreAuth()
allows a UserInterface
instance only.
I get Argument 1 passed to checkPreAuth() must implement interface Symfony\Component\Security\Core\User\UserInterface, null given
, and can't reproduce it, but the code looks wrong.