Skip to content

Commit 8bbc854

Browse files
authored
updated the casted interface name as per the implemented interface
1 parent 86dd45f commit 8bbc854

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
@@ -464,13 +464,14 @@ storing the newly created password hash::
464464
namespace App\Repository;
465465

466466
// ...
467+
use Symfony\Component\Security\Core\User\PasswordAuthenticatedUserInterface;
467468
use Symfony\Component\Security\Core\User\PasswordUpgraderInterface;
468469

469470
class UserRepository extends EntityRepository implements PasswordUpgraderInterface
470471
{
471472
// ...
472473

473-
public function upgradePassword(UserInterface $user, string $newHashedPassword): void
474+
public function upgradePassword(PasswordAuthenticatedUserInterface $user, string $newHashedPassword): void
474475
{
475476
// set the new hashed password on the User object
476477
$user->setPassword($newHashedPassword);

0 commit comments

Comments
 (0)