-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix return type JsonFormatter::normalizeException()
#1924
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
<?php declare(strict_types=1); | ||
Check failure on line 1 in src/Monolog/Formatter/JsonFormatter.php
|
||
|
||
/* | ||
* This file is part of the Monolog package. | ||
|
@@ -216,9 +216,9 @@ | |
* Normalizes given exception with or without its own stack trace based on | ||
* `includeStacktraces` property. | ||
* | ||
* @return array<string, string|int|array<string|int|array<string>>>|string | ||
* @return array<array-key, string|int|array<string|int|array<string>>> | ||
*/ | ||
protected function normalizeException(Throwable $e, int $depth = 0): array | ||
Check failure on line 221 in src/Monolog/Formatter/JsonFormatter.php
|
||
{ | ||
$data = parent::normalizeException($e, $depth); | ||
if (!$this->includeStacktraces) { | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
keys might be non-string when max depth exceeds, and maybe in case of JsonSerializable