Skip to content

Commit 4f9136c

Browse files
fix(user): remove deprecated eraseCredentials (#2183)
1 parent f3e42bb commit 4f9136c

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

symfony/user.md

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -139,14 +139,6 @@ class User implements UserInterface, PasswordAuthenticatedUserInterface
139139
{
140140
return (string) $this->email;
141141
}
142-
143-
/**
144-
* @see UserInterface
145-
*/
146-
public function eraseCredentials(): void
147-
{
148-
$this->plainPassword = null;
149-
}
150142
}
151143
```
152144

@@ -258,7 +250,6 @@ final readonly class UserPasswordHasher implements ProcessorInterface
258250
$data->getPlainPassword()
259251
);
260252
$data->setPassword($hashedPassword);
261-
$data->eraseCredentials();
262253

263254
return $this->processor->process($data, $operation, $uriVariables, $context);
264255
}

0 commit comments

Comments
 (0)