From 7fd0e4549bade5465154b1d3144313712a98a697 Mon Sep 17 00:00:00 2001 From: Christian Bartels Date: Wed, 2 Aug 2023 10:20:17 +0200 Subject: [PATCH] Fallback to empty string to avoid fatal error --- src/Config.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Config.php b/src/Config.php index db90299..a00e518 100644 --- a/src/Config.php +++ b/src/Config.php @@ -65,9 +65,9 @@ public function load($path): void $config = json_decode(file_get_contents($path), true); - $this->host = $config['host'] ?? null; - $this->user = $config['user'] ?? null; - $this->token = $config['token'] ?? null; + $this->host = $config['host'] ?? ''; + $this->user = $config['user'] ?? ''; + $this->token = $config['token'] ?? ''; $this->file = $config['file'] ?? $this->file; $this->roundMinutes = $config['roundMinutes'] ?? $this->roundMinutes; $this->dateRegex = $config['dateRegex'] ?? $this->dateRegex;