LexikJWTAuthenticationBundle icon indicating copy to clipboard operation
LexikJWTAuthenticationBundle copied to clipboard

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

Open Nirator78 opened this issue 1 year ago • 0 comments

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.

Nirator78 avatar Jun 20 '23 12:06 Nirator78