From d54f9f1d6ca13ef4dbf0d7827224559abcd09af9 Mon Sep 17 00:00:00 2001 From: Christophe Coevoet Date: Fri, 13 Feb 2026 22:11:32 +0100 Subject: [PATCH] Mark `User::eraseCredentials` as deprecated This avoids the deprecation warning of Symfony about the deprecation of the method. Our User class already excludes the plain password from the serialized data even when this method is not called. --- src/Model/User.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Model/User.php b/src/Model/User.php index 16610592e..845710c5b 100644 --- a/src/Model/User.php +++ b/src/Model/User.php @@ -183,6 +183,7 @@ public function addRole($role) return $this; } + #[\Deprecated] public function eraseCredentials(): void { $this->plainPassword = null;