2
0
Jordi Boggiano 1 жил өмнө
parent
commit
517e2f40a2

+ 6 - 0
phpstan-baseline.neon

@@ -30,6 +30,12 @@ parameters:
 			count: 1
 			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\>\.$#'
 			identifier: return.type

+ 1 - 1
src/Monolog/Formatter/JsonFormatter.php

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