diff --git a/.gitignore b/.gitignore index c612ac8..3614327 100644 --- a/.gitignore +++ b/.gitignore @@ -1,7 +1,8 @@ /build /vendor /.idea +/.vscode .php-cs-fixer.cache .phpunit.result.cache composer.lock -phpunit.xml.bak \ No newline at end of file +phpunit.xml.bak diff --git a/src/Http/Requests/AssertionRequest.php b/src/Http/Requests/AssertionRequest.php index c6c750d..64e7f8d 100644 --- a/src/Http/Requests/AssertionRequest.php +++ b/src/Http/Requests/AssertionRequest.php @@ -121,7 +121,7 @@ class AssertionRequest extends FormRequest */ protected function findUser(WebAuthnAuthenticatable|array|int|string|null $credentials): ?WebAuthnAuthenticatable { - if (!$credentials) { + if ($credentials === null) { return null; }