From 02320f981e26fdbeeaae575911e0afa7bdcae988 Mon Sep 17 00:00:00 2001 From: Robin Chalas Date: Fri, 11 Jun 2021 16:36:11 +0200 Subject: [PATCH] [PasswordHasher] Remove PasswordHasherAwareInterface from UserPasswordHasherInterface API --- Hasher/UserPasswordHasher.php | 6 +++--- Hasher/UserPasswordHasherInterface.php | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Hasher/UserPasswordHasher.php b/Hasher/UserPasswordHasher.php index 5d36f86..f26164d 100644 --- a/Hasher/UserPasswordHasher.php +++ b/Hasher/UserPasswordHasher.php @@ -32,7 +32,7 @@ public function __construct(PasswordHasherFactoryInterface $hasherFactory) } /** - * @param PasswordAuthenticatedUserInterface|PasswordHasherAwareInterface $user + * @param PasswordAuthenticatedUserInterface $user */ public function hashPassword($user, string $plainPassword): string { @@ -54,7 +54,7 @@ public function hashPassword($user, string $plainPassword): string } /** - * @param PasswordAuthenticatedUserInterface|PasswordHasherAwareInterface $user + * @param PasswordAuthenticatedUserInterface $user */ public function isPasswordValid($user, string $plainPassword): bool { @@ -80,7 +80,7 @@ public function isPasswordValid($user, string $plainPassword): bool } /** - * @param PasswordAuthenticatedUserInterface|PasswordHasherAwareInterface $user + * @param PasswordAuthenticatedUserInterface $user */ public function needsRehash($user): bool { diff --git a/Hasher/UserPasswordHasherInterface.php b/Hasher/UserPasswordHasherInterface.php index b78309d..cf29220 100644 --- a/Hasher/UserPasswordHasherInterface.php +++ b/Hasher/UserPasswordHasherInterface.php @@ -18,9 +18,9 @@ * * @author Ariel Ferrandini * - * @method string hashPassword(PasswordAuthenticatedUserInterface|PasswordHasherAwareInterface $user, string $plainPassword) Hashes the plain password for the given user. - * @method bool isPasswordValid(PasswordAuthenticatedUserInterface|PasswordHasherAwareInterface $user, string $plainPassword) Checks if the plaintext password matches the user's password. - * @method bool needsRehash(PasswordAuthenticatedUserInterface|PasswordHasherAwareInterface $user) Checks if an encoded password would benefit from rehashing. + * @method string hashPassword(PasswordAuthenticatedUserInterface $user, string $plainPassword) Hashes the plain password for the given user. + * @method bool isPasswordValid(PasswordAuthenticatedUserInterface $user, string $plainPassword) Checks if the plaintext password matches the user's password. + * @method bool needsRehash(PasswordAuthenticatedUserInterface $user) Checks if an encoded password would benefit from rehashing. */ interface UserPasswordHasherInterface {