1
0
mirror of https://github.com/Seldaek/monolog.git synced 2025-08-05 04:37:38 +02:00

Fix build

This commit is contained in:
Jordi Boggiano
2024-11-11 15:39:25 +01:00
parent 5d5da57b81
commit 517e2f40a2
2 changed files with 7 additions and 1 deletions

View File

@@ -30,6 +30,12 @@ parameters:
count: 1 count: 1
path: src/Monolog/Formatter/JsonFormatter.php path: src/Monolog/Formatter/JsonFormatter.php
-
message: '#^Return type \(array\<array\<mixed\>\|bool\|float\|int\|stdClass\|string\|null\>\) of method Monolog\\Formatter\\JsonFormatter\:\:normalizeRecord\(\) should be covariant with return type \(array\<array\<mixed\>\|bool\|float\|int\|string\|null\>\) of method Monolog\\Formatter\\NormalizerFormatter\:\:normalizeRecord\(\)$#'
identifier: method.childReturnType
count: 1
path: src/Monolog/Formatter/JsonFormatter.php
- -
message: '#^Method Monolog\\Formatter\\NormalizerFormatter\:\:normalizeException\(\) should return array\<string, array\<array\<string\>\|int\|string\>\|int\|string\>\|string but returns array\<int, string\>\.$#' message: '#^Method Monolog\\Formatter\\NormalizerFormatter\:\:normalizeException\(\) should return array\<string, array\<array\<string\>\|int\|string\>\|int\|string\>\|string but returns array\<int, string\>\.$#'
identifier: return.type identifier: return.type

View File

@@ -101,7 +101,7 @@ class JsonFormatter extends NormalizerFormatter
} }
/** /**
* @return array<array|bool|float|int|stdClass|string|null> * @return array<array<mixed>|bool|float|int|\stdClass|string|null>
*/ */
protected function normalizeRecord(LogRecord $record): array protected function normalizeRecord(LogRecord $record): array
{ {