We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6725c6f commit 6a79fb3Copy full SHA for 6a79fb3
1 file changed
src/Support/Aaguids.php
@@ -4,6 +4,8 @@
4
5
namespace Laravel\Passkeys\Support;
6
7
+use Illuminate\Support\Facades\File;
8
+
9
/**
10
* AAGUID to authenticator name mapping.
11
*
@@ -41,11 +43,8 @@ public static function unknown(): string
41
43
*/
42
44
public static function all(): array
45
{
- return static::$aaguids ??= json_decode(
- file_get_contents(__DIR__.'/../../resources/aaguids.json'),
46
- true,
47
- flags: JSON_THROW_ON_ERROR,
48
- );
+ /** @var array<string, string> */
+ return static::$aaguids ??= File::json(__DIR__.'/../../resources/aaguids.json');
49
}
50
51
0 commit comments