We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cbcf620 commit 2828a4bCopy full SHA for 2828a4b
app/Services/Helpers/AssetHashService.php
@@ -15,7 +15,7 @@ class AssetHashService
15
16
private Filesystem $filesystem;
17
18
- protected static mixed $manifest;
+ protected static mixed $manifest = null;
19
20
/**
21
* AssetHashService constructor.
@@ -99,9 +99,13 @@ public function js(string $resource): string
99
*/
100
protected function manifest(): array
101
{
102
- return self::$manifest ?: self::$manifest = json_decode(
103
- $this->filesystem->get(self::MANIFEST_PATH),
104
- true
105
- );
+ if (static::$manifest === null) {
+ self::$manifest = json_decode(
+ $this->filesystem->get(self::MANIFEST_PATH),
+ true
106
+ );
107
+ }
108
+
109
+ return static::$manifest;
110
}
111
0 commit comments