Skip to content

Commit d54f9f1

Browse files
committed
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.
1 parent 508e1e8 commit d54f9f1

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/Model/User.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,7 @@ public function addRole($role)
183183
return $this;
184184
}
185185

186+
#[\Deprecated]
186187
public function eraseCredentials(): void
187188
{
188189
$this->plainPassword = null;

0 commit comments

Comments
 (0)