2fa
2fa copied to clipboard
`TokenInterface::eraseCredentials()` is deprecated in symfony 7.3
The 2fa-bundle implements TokenInterface::eraseCredentials() which is deprecated since https://github.com/symfony/symfony/pull/59682
This leads to the following deprecation warning if symfony 7.3 is installed:
Since symfony/security-http 7.3: Implementing "Scheb\TwoFactorBundle\Security\Authentication\Token\TwoFactorToken::eraseCredentials()" is deprecated since Symfony 7.3; add the #[\Deprecated] attribute on the method to signal its either empty or that you moved the logic elsewhere, typically to the "__serialize()" method.