Skip to content

Commit 083c08d

Browse files
committed
Merge branch '7.2' into 7.3
* 7.2: [Security] Fix type in `upgradePassword`
2 parents a2c83bf + 8835d41 commit 083c08d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

security/passwords.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -500,13 +500,14 @@ the user provider::
500500
namespace App\Security;
501501

502502
// ...
503+
use Symfony\Component\Security\Core\User\PasswordAuthenticatedUserInterface;
503504
use Symfony\Component\Security\Core\User\PasswordUpgraderInterface;
504505

505506
class UserProvider implements UserProviderInterface, PasswordUpgraderInterface
506507
{
507508
// ...
508509

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

0 commit comments

Comments
 (0)