Skip to content

Commit e9e4c41

Browse files
authored
Merge pull request #403 from opcodesio/bug/trimming-null-values
message should default to empty string; fixes #400
2 parents dd5e206 + 86d1fd6 commit e9e4c41

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Logs/Log.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ protected function fillMatches(array $matches = []): void
111111
$this->datetime = $datetime?->setTimezone(LogViewer::timezone());
112112

113113
$this->level = $matches[static::$regexLevelKey] ?? null;
114-
$this->message = trim($matches[static::$regexMessageKey] ?? null);
114+
$this->message = trim($matches[static::$regexMessageKey] ?? '');
115115
$this->context = [];
116116
}
117117

0 commit comments

Comments
 (0)