Skip to content

Commit

Permalink
Update JsonFormatter.php
Browse files Browse the repository at this point in the history
  • Loading branch information
Seldaek authored Aug 27, 2024
1 parent 20aa5ca commit 816c8b9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Monolog/Formatter/JsonFormatter.php
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,9 @@ public function includeStacktraces(bool $include = true): self
return $this;
}

/**
* @return array<array|bool|float|int|stdClass|string|null>
*/
protected function normalizeRecord(LogRecord $record): array

Check failure on line 108 in src/Monolog/Formatter/JsonFormatter.php

View workflow job for this annotation

GitHub Actions / PHPStan (8.1)

Method Monolog\Formatter\JsonFormatter::normalizeRecord() has invalid return type Monolog\Formatter\stdClass.

Check failure on line 108 in src/Monolog/Formatter/JsonFormatter.php

View workflow job for this annotation

GitHub Actions / PHPStan (8.1)

Method Monolog\Formatter\JsonFormatter::normalizeRecord() return type has no value type specified in iterable type array.

Check failure on line 108 in src/Monolog/Formatter/JsonFormatter.php

View workflow job for this annotation

GitHub Actions / PHPStan (8.1)

Return type (array<array|bool|float|int|Monolog\Formatter\stdClass|string|null>) of method Monolog\Formatter\JsonFormatter::normalizeRecord() should be covariant with return type (array<array|bool|float|int|string|null>) of method Monolog\Formatter\NormalizerFormatter::normalizeRecord()
{
$normalized = parent::normalizeRecord($record);
Expand Down

0 comments on commit 816c8b9

Please sign in to comment.