Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

TokenInterface parameter might be null #37501

Copy link
Copy link
Closed
@gassan

Description

@gassan
Issue body actions

Symfony version(s) affected: 5.1.2

Description
Token might be null if enable_authenticator_manager = true
Error:
Argument 3 passed to Symfony\Component\Security\Http\RememberMe\AbstractRememberMeServices::logout() must be an instance of Symfony\Component\Security\Core\Authentication\Token\TokenInterface, null given, called in /usr/www/users/igneed/login/vendor/symfony/security-http/EventListener/RememberMeLogoutListener.php on line 47

How to reproduce
add remember_me section to main firewall and unauthenticated go to /logout

Possible Solution

add ? to last parameter (?TokenInterface) in Symfony\Component\Security\Http\RememberMe\AbstractRememberMeServices::logout()

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.