Skip to content

Commit

Permalink
Fix hotreload ErrorException when all components are removed
Browse files Browse the repository at this point in the history
  • Loading branch information
PhiloNL authored Jan 3, 2025
1 parent 8c9ae94 commit 477a814
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/SupportHotReloading.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 477a814

Please sign in to comment.