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

User Deprecated: Method "Symfony\Component\Security\Core\Authentication\Token\TokenInterface::getCredentials()" might add "mixed" #1147

Open
Nirator78 opened this issue Jun 20, 2023 · 0 comments

Comments

@Nirator78
Copy link

Nirator78 commented Jun 20, 2023

If i have understand this warning on my Symfony 5.4 project and the 2.18.1 of the lexik bundle, the lexik bundle just need to add some phpdoc with @return mixed on the method Symfony\Component\Security\Core\Authentication\Token\TokenInterface::getCredentials().

User Deprecated: Method "Symfony\Component\Security\Core\Authentication\Token\TokenInterface::getCredentials()" might add mixed" as a native return type declaration in the future. Do the same in implementation "Lexik\Bundle\JWTAuthenticationBundle\Security\Authentication\Token\JWTUserToken" now to avoid errors or add an explicit @return annotation to suppress this message.

I have other deprecated like this if you want to correct it in the bundle.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant