Skip to content

Commit 6a79fb3

Browse files
committed
Update Aaguids.php
1 parent 6725c6f commit 6a79fb3

1 file changed

Lines changed: 4 additions & 5 deletions

File tree

src/Support/Aaguids.php

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44

55
namespace Laravel\Passkeys\Support;
66

7+
use Illuminate\Support\Facades\File;
8+
79
/**
810
* AAGUID to authenticator name mapping.
911
*
@@ -41,11 +43,8 @@ public static function unknown(): string
4143
*/
4244
public static function all(): array
4345
{
44-
return static::$aaguids ??= json_decode(
45-
file_get_contents(__DIR__.'/../../resources/aaguids.json'),
46-
true,
47-
flags: JSON_THROW_ON_ERROR,
48-
);
46+
/** @var array<string, string> */
47+
return static::$aaguids ??= File::json(__DIR__.'/../../resources/aaguids.json');
4948
}
5049

5150
/**

0 commit comments

Comments
 (0)