Skip to content

Commit 02320f9

Browse files
committed
[PasswordHasher] Remove PasswordHasherAwareInterface from UserPasswordHasherInterface API
1 parent 517555f commit 02320f9

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

Hasher/UserPasswordHasher.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ public function __construct(PasswordHasherFactoryInterface $hasherFactory)
3232
}
3333

3434
/**
35-
* @param PasswordAuthenticatedUserInterface|PasswordHasherAwareInterface $user
35+
* @param PasswordAuthenticatedUserInterface $user
3636
*/
3737
public function hashPassword($user, string $plainPassword): string
3838
{
@@ -54,7 +54,7 @@ public function hashPassword($user, string $plainPassword): string
5454
}
5555

5656
/**
57-
* @param PasswordAuthenticatedUserInterface|PasswordHasherAwareInterface $user
57+
* @param PasswordAuthenticatedUserInterface $user
5858
*/
5959
public function isPasswordValid($user, string $plainPassword): bool
6060
{
@@ -80,7 +80,7 @@ public function isPasswordValid($user, string $plainPassword): bool
8080
}
8181

8282
/**
83-
* @param PasswordAuthenticatedUserInterface|PasswordHasherAwareInterface $user
83+
* @param PasswordAuthenticatedUserInterface $user
8484
*/
8585
public function needsRehash($user): bool
8686
{

Hasher/UserPasswordHasherInterface.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@
1818
*
1919
* @author Ariel Ferrandini <arielferrandini@gmail.com>
2020
*
21-
* @method string hashPassword(PasswordAuthenticatedUserInterface|PasswordHasherAwareInterface $user, string $plainPassword) Hashes the plain password for the given user.
22-
* @method bool isPasswordValid(PasswordAuthenticatedUserInterface|PasswordHasherAwareInterface $user, string $plainPassword) Checks if the plaintext password matches the user's password.
23-
* @method bool needsRehash(PasswordAuthenticatedUserInterface|PasswordHasherAwareInterface $user) Checks if an encoded password would benefit from rehashing.
21+
* @method string hashPassword(PasswordAuthenticatedUserInterface $user, string $plainPassword) Hashes the plain password for the given user.
22+
* @method bool isPasswordValid(PasswordAuthenticatedUserInterface $user, string $plainPassword) Checks if the plaintext password matches the user's password.
23+
* @method bool needsRehash(PasswordAuthenticatedUserInterface $user) Checks if an encoded password would benefit from rehashing.
2424
*/
2525
interface UserPasswordHasherInterface
2626
{

0 commit comments

Comments
 (0)