diff --git a/src/SupportHotReloading.php b/src/SupportHotReloading.php index 35c9796..34f2108 100644 --- a/src/SupportHotReloading.php +++ b/src/SupportHotReloading.php @@ -147,7 +147,7 @@ protected function getCache() File::put($path, json_encode([])); } - return json_decode(File::get($path), true); + return json_decode(File::get($path), true) ?? []; } protected function putCache($cache): void