From 477a814315e7ce24bb91c411393ebd67de349d38 Mon Sep 17 00:00:00 2001 From: Philo Hermans Date: Fri, 3 Jan 2025 13:43:43 +0100 Subject: [PATCH] Fix hotreload ErrorException when all components are removed --- src/SupportHotReloading.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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