From c96bd3f24814e9db63ee9e8c0aca8e55f6a2357a Mon Sep 17 00:00:00 2001 From: Maciej Brencz Date: Thu, 28 May 2020 19:24:06 +0200 Subject: [PATCH] Stay compatible with Monolog 2.x --- src/Macbre/Formatters/JsonFormatter.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Macbre/Formatters/JsonFormatter.php b/src/Macbre/Formatters/JsonFormatter.php index 901d282..0d731f5 100644 --- a/src/Macbre/Formatters/JsonFormatter.php +++ b/src/Macbre/Formatters/JsonFormatter.php @@ -16,7 +16,7 @@ class JsonFormatter extends \Monolog\Formatter\JsonFormatter { * @param array $record * @return string formatted record */ - public function format(array $record) { + public function format(array $record): string { $entry = [ '@timestamp' => self::now(), '@message' => $record['message'],