Skip to content

Commit c48291b

Browse files
Merge pull request #37 from weierophinney/hotfix/36-parameter-type-fix
Fix BC break in BcryptTrait
2 parents 6e16797 + 3b70f51 commit c48291b

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

src/Adapter/BcryptTrait.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,12 @@ public function setBcryptCost($value)
4040

4141
/**
4242
* Check password using bcrypt
43+
*
44+
* @param array<string, string> $user
45+
* @param string $password
46+
* @return bool
4347
*/
44-
protected function checkPassword(string $user, string $password): bool
48+
protected function checkPassword($user, $password)
4549
{
4650
return $this->verifyHash($password, $user['password']);
4751
}

src/Adapter/MongoAdapter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ public function setBcryptCost($value)
4949
/**
5050
* Check password using bcrypt
5151
*
52-
* @param string $user
52+
* @param array<string, string> $user
5353
* @param string $password
5454
* @return bool
5555
*/

src/Adapter/PdoAdapter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ public function setBcryptCost($value)
4646
/**
4747
* Check password using bcrypt
4848
*
49-
* @param string $user
49+
* @param array<array-key, mixed> $user
5050
* @param string $password
5151
* @return bool
5252
*/

0 commit comments

Comments
 (0)