Fixes static analysis
This commit is contained in:
@@ -23,6 +23,7 @@ class AddUserDescriptor
|
||||
$config = $attestable->user->webAuthnData();
|
||||
|
||||
// Create a new User UUID if it doesn't existe already in the credentials.
|
||||
// @phpstan-ignore-next-line
|
||||
$config['id'] = $attestable->user->webAuthnCredentials()->value('user_id')
|
||||
?: Str::uuid()->getHex()->toString();
|
||||
|
||||
|
||||
@@ -39,6 +39,7 @@ class MayPreventDuplicateCredentials
|
||||
return $user
|
||||
->webAuthnCredentials()
|
||||
->get(['id', 'transports'])
|
||||
// @phpstan-ignore-next-line
|
||||
->map(static function (WebAuthnCredential $credential): array {
|
||||
return array_filter([
|
||||
'id'=> $credential->getKey(),
|
||||
|
||||
Reference in New Issue
Block a user