fix AssetManifestService error when loading the panel

This commit is contained in:
Matthew Penner 2022-10-14 11:00:10 -06:00
parent cbcf62086f
commit 2828a4b1e0
No known key found for this signature in database
1 changed files with 9 additions and 5 deletions

View File

@ -15,7 +15,7 @@ class AssetHashService
private Filesystem $filesystem; private Filesystem $filesystem;
protected static mixed $manifest; protected static mixed $manifest = null;
/** /**
* AssetHashService constructor. * AssetHashService constructor.
@ -99,9 +99,13 @@ class AssetHashService
*/ */
protected function manifest(): array protected function manifest(): array
{ {
return self::$manifest ?: self::$manifest = json_decode( if (static::$manifest === null) {
$this->filesystem->get(self::MANIFEST_PATH), self::$manifest = json_decode(
true $this->filesystem->get(self::MANIFEST_PATH),
); true
);
}
return static::$manifest;
} }
} }