2fa icon indicating copy to clipboard operation
2fa copied to clipboard

`TokenInterface::eraseCredentials()` is deprecated in symfony 7.3

Open W0rma opened this issue 6 months ago • 0 comments

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.

W0rma avatar Jun 04 '25 12:06 W0rma