mirror of
https://github.com/Seldaek/monolog.git
synced 2025-08-05 12:47:39 +02:00
Cast toJson to string in case it returns false, fixes #878
This commit is contained in:
@@ -146,7 +146,7 @@ class LineFormatter extends NormalizerFormatter
|
||||
return (string) $data;
|
||||
}
|
||||
|
||||
return $this->toJson($data, true);
|
||||
return (string) $this->toJson($data, true);
|
||||
}
|
||||
|
||||
protected function replaceNewlines(string $str): string
|
||||
|
Reference in New Issue
Block a user