Repository: opcodesio/log-viewer (language: php)

Issue:
log-viewer is producing warnings when triming null values
in src/Logs/Log.php, line 114:
```php
$this->message = trim($matches[static::$regexMessageKey] ?? null);
``` 
This produces a lot of warnings in laravel.log when there is no $matches[static::$regexMessageKey], because function trim expects a string.
There should be a previous condition to trim the message only when it is not null.



Discussion / hints:

Fix patch:
diff --git a/src/Logs/Log.php b/src/Logs/Log.php
index 8e8010b..684c195 100644
--- a/src/Logs/Log.php
+++ b/src/Logs/Log.php
@@ -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 = [];
     }
 


Test patch: