Skip to content

Commit ba5470e

Browse files
authored
Update passwords.rst
Fix the wrong type for the method `upgradePassword` according to `PasswordUpgraderInterface`.
1 parent f019e47 commit ba5470e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

security/passwords.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -506,7 +506,7 @@ the user provider::
506506
{
507507
// ...
508508

509-
public function upgradePassword(UserInterface $user, string $newHashedPassword): void
509+
public function upgradePassword(PasswordAuthenticatedUserInterface $user, string $newHashedPassword): void
510510
{
511511
// set the new hashed password on the User object
512512
$user->setPassword($newHashedPassword);

0 commit comments

Comments
 (0)