Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stubs overruling actual interface ? #347

Closed
alcohol opened this issue Apr 20, 2023 · 2 comments
Closed

Stubs overruling actual interface ? #347

alcohol opened this issue Apr 20, 2023 · 2 comments

Comments

@alcohol
Copy link

alcohol commented Apr 20, 2023

Maybe I am missing something in configuration or documentation, but the application I maintain has a User entity that implements LegacyPasswordAuthenticatedUserInterface, thus including the PasswordAuthenticatedUserInterface it has both the getSalt() and getPassword() methods. But phpstan complains about using these methods:

  57     Call to an undefined method Symfony\Component\Security\Core\User\LegacyPasswordAuthenticatedUserInterface::setPassword().  
  58     Call to an undefined method Symfony\Component\Security\Core\User\LegacyPasswordAuthenticatedUserInterface::setSalt().  
@alcohol alcohol changed the title Stubs overruling actual interface Stubs overruling actual interface ? Apr 20, 2023
@alcohol
Copy link
Author

alcohol commented Apr 20, 2023

I'm an idiot. They only declare getters, not setters. Sigh.

@alcohol alcohol closed this as completed Apr 20, 2023
@github-actions
Copy link

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 22, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant