Skip to content

Commit

Permalink
message should default to empty string; fixes #400
Browse files Browse the repository at this point in the history
  • Loading branch information
arukompas committed Nov 11, 2024
1 parent c20cc0a commit 86d1fd6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Logs/Log.php
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ protected function fillMatches(array $matches = []): void
$this->datetime = $datetime?->setTimezone(LogViewer::timezone());

$this->level = $matches[static::$regexLevelKey] ?? null;
$this->message = trim($matches[static::$regexMessageKey] ?? null);
$this->message = trim($matches[static::$regexMessageKey] ?? '');
$this->context = [];
}

Expand Down

0 comments on commit 86d1fd6

Please sign in to comment.