From 6a908963b4574972ce644893138b76e5a52609c2 Mon Sep 17 00:00:00 2001 From: Romain Card <47689092+Synxgz@users.noreply.github.com> Date: Fri, 23 May 2025 10:57:44 +0200 Subject: [PATCH] [Security] Fix type in `upgradePassword` --- security/passwords.rst | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/security/passwords.rst b/security/passwords.rst index fe20187b3a0..4bf481fa827 100644 --- a/security/passwords.rst +++ b/security/passwords.rst @@ -500,13 +500,14 @@ the user provider:: namespace App\Security; // ... + use Symfony\Component\Security\Core\User\PasswordAuthenticatedUserInterface; use Symfony\Component\Security\Core\User\PasswordUpgraderInterface; class UserProvider implements UserProviderInterface, PasswordUpgraderInterface { // ... - public function upgradePassword(UserInterface $user, string $newHashedPassword): void + public function upgradePassword(PasswordAuthenticatedUserInterface $user, string $newHashedPassword): void { // set the new hashed password on the User object $user->setPassword($newHashedPassword);