1
0
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:
Jordi Boggiano
2016-11-13 19:36:50 +01:00
parent cb88cc82de
commit 9da099717b

View File

@@ -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