Skip to content

UserInterface and PasswordAuthenticatedUserInterface::getPassword has different signatures #41519

@mmarton

Description

@mmarton

Symfony version(s) affected: 5.3.1

PHP version(s) affected: 7.4

Description
After #41493 it is not possible to implement both UserInteface and PasswordAuthenticatedUserInterface

Fatal error: Declaration of Symfony\Component\Security\Core\User\UserInterface::getPassword() must be compatible with Symfony\Component\Security\Core\User\PasswordAuthenticatedUserInterface::getPassword(): ?string

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