From 2b79cf6ed40946b64ac6713d7d2da8a9d87f612b Mon Sep 17 00:00:00 2001 From: Freek Van der Herten Date: Wed, 26 Oct 2022 19:39:54 +0200 Subject: [PATCH] fix nullable recorders error --- src/IgnitionServiceProvider.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/IgnitionServiceProvider.php b/src/IgnitionServiceProvider.php index d19c442f..e9975729 100644 --- a/src/IgnitionServiceProvider.php +++ b/src/IgnitionServiceProvider.php @@ -244,7 +244,7 @@ protected function registerLogHandler(): void protected function startRecorders(): void { - foreach ($this->app->config['ignition.recorders'] as $recorder) { + foreach ($this->app->config['ignition.recorders'] ?? [] as $recorder) { $this->app->make($recorder)->start(); } }