Skip to content

Commit

Permalink
Merge pull request #403 from opcodesio/bug/trimming-null-values
Browse files Browse the repository at this point in the history
message should default to empty string; fixes #400
  • Loading branch information
arukompas authored Nov 11, 2024
2 parents dd5e206 + 86d1fd6 commit e9e4c41
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 e9e4c41

Please sign in to comment.