-
-
Notifications
You must be signed in to change notification settings - Fork 477
Open
Labels
Description
Subject
Class Sonata\UserBundle\Model\User implementing deprecate UserInterface::eraseCredentials()
https://github.com/symfony/symfony/blob/7.4/UPGRADE-7.3.md#security
Steps to reproduce
Login to admin and use Profiler -> Search profiles -> 302 POST https://.../login_check -> Token -> Logs
Expected results
No deprecations
Actual results
User Deprecated: Since symfony/security-http 7.3: Implementing "App\Entity\SonataUserUser::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.
// src/Entity/SonataUserUser.php
namespace App\Entity;
use Doctrine\DBAL\Types\Types;
use Doctrine\ORM\Mapping as ORM;
use Sonata\UserBundle\Entity\BaseUser3;
#[ORM\Table(name: 'sonata_user__user')]
#[ORM\Entity]
class SonataUserUser extends BaseUser3
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column(name: 'id', type: Types::INTEGER)]
protected $id;
}
Reactions are currently unavailable