Skip to content

Commit 004e8ba

Browse files
committed
fix
1 parent 90f2ff4 commit 004e8ba

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/Auth/EloquentWebAuthnProvider.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
namespace LaravelWebauthn\Auth;
44

55
use Illuminate\Auth\EloquentUserProvider;
6-
use Illuminate\Contracts\Auth\Authenticatable;
76
use Illuminate\Contracts\Auth\Authenticatable as User;
87
use Illuminate\Contracts\Config\Repository as Config;
98
use Illuminate\Contracts\Hashing\Hasher;
@@ -83,9 +82,11 @@ public function validateCredentials(User $user, array $credentials): bool
8382

8483
/**
8584
* Rehash the user's password if required and supported.
85+
*
86+
* @phpstan-ignore method.childParameterType
8687
*/
8788
#[\Override]
88-
public function rehashPasswordIfRequired(Authenticatable $user, array $credentials, bool $force = false): void
89+
public function rehashPasswordIfRequired(User $user, array $credentials, bool $force = false): void
8990
{
9091
if ($this->isSignedChallenge($credentials)) {
9192
// We don't need to rehash the password for WebAuthn credentials.

0 commit comments

Comments
 (0)