Fixes static analysis
This commit is contained in:
@@ -36,11 +36,11 @@ class MayRetrieveCredentialsIdForUser
|
||||
* Adapt all credentials into an `allowCredentials` digestible array.
|
||||
*
|
||||
* @param \Illuminate\Database\Eloquent\Collection<int, \Laragear\WebAuthn\Models\WebAuthnCredential> $credentials
|
||||
* @phpstan-ignore-next-line
|
||||
* @return \Illuminate\Support\Collection<int, array{id?: mixed, type: string, transports?: non-empty-array<int, string>}>
|
||||
*/
|
||||
protected function parseCredentials(EloquentCollection $credentials): Collection
|
||||
{
|
||||
// @phpstan-ignore-next-line
|
||||
return $credentials->map(static function (WebAuthnCredential $credential): array {
|
||||
return array_filter([
|
||||
'id' => $credential->getKey(),
|
||||
|
||||
Reference in New Issue
Block a user