Skip to content

Commit

Permalink
Fallback to empty string to avoid fatal error
Browse files Browse the repository at this point in the history
  • Loading branch information
Christian Bartels committed Aug 2, 2023
1 parent 4ae37b0 commit 7fd0e45
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Config.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 7fd0e45

Please sign in to comment.