diff --git a/src/Adapter/BcryptTrait.php b/src/Adapter/BcryptTrait.php index a4c45fd..acabbc5 100644 --- a/src/Adapter/BcryptTrait.php +++ b/src/Adapter/BcryptTrait.php @@ -40,8 +40,12 @@ public function setBcryptCost($value) /** * Check password using bcrypt + * + * @param array $user + * @param string $password + * @return bool */ - protected function checkPassword(string $user, string $password): bool + protected function checkPassword($user, $password) { return $this->verifyHash($password, $user['password']); } diff --git a/src/Adapter/MongoAdapter.php b/src/Adapter/MongoAdapter.php index 8262933..9c03150 100644 --- a/src/Adapter/MongoAdapter.php +++ b/src/Adapter/MongoAdapter.php @@ -49,7 +49,7 @@ public function setBcryptCost($value) /** * Check password using bcrypt * - * @param string $user + * @param array $user * @param string $password * @return bool */ diff --git a/src/Adapter/PdoAdapter.php b/src/Adapter/PdoAdapter.php index 321b476..36a85cc 100644 --- a/src/Adapter/PdoAdapter.php +++ b/src/Adapter/PdoAdapter.php @@ -46,7 +46,7 @@ public function setBcryptCost($value) /** * Check password using bcrypt * - * @param string $user + * @param array $user * @param string $password * @return bool */