Skip to content

Commit ffd1e14

Browse files
Add generics to PasswordUpgraderInterface
1 parent c03a0da commit ffd1e14

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

User/PasswordUpgraderInterface.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313

1414
/**
1515
* @author Nicolas Grekas <[email protected]>
16+
*
17+
* @template TUser of PasswordAuthenticatedUserInterface
1618
*/
1719
interface PasswordUpgraderInterface
1820
{
@@ -22,6 +24,8 @@ interface PasswordUpgraderInterface
2224
* This method should persist the new password in the user storage and update the $user object accordingly.
2325
* Because you don't want your users not being able to log in, this method should be opportunistic:
2426
* it's fine if it does nothing or if it fails without throwing any exception.
27+
*
28+
* @param TUser $user
2529
*/
2630
public function upgradePassword(PasswordAuthenticatedUserInterface $user, string $newHashedPassword): void;
2731
}

0 commit comments

Comments
 (0)