-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[MonologBridge] Remove support for monolog < 3.0 #51091
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
Conversation
1ecbc0b
to
67dd5a3
Compare
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.
thanks for taking care of this, here are some minor comments
} | ||
|
||
$notification->importanceFromLogLevelName(Logger::getLevelName($record['level'])); | ||
$notification->importanceFromLogLevelName($record->level->getName()); |
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.
This looks to me like a psalm bug, if it cannot determine that a const array of strings is of type string[]
.
59f5f15
to
c086746
Compare
Thank you @lyrixx. |
…lerTest (derrabus) This PR was merged into the 7.0 branch. Discussion ---------- [MonologBridge] Remove Monolog 1 compat from FirePHPHandlerTest | Q | A | ------------- | --- | Branch? | 7.0 | Bug fix? | no | New feature? | no | Deprecations? | no | Tickets | Follows #51091 | License | MIT | Doc PR | N/A Commits ------- 9ebdc3d [MonologBridge] Remove more Monolog 1 compat from FirePHPHandlerTest
…ay (vtsykun) This PR was merged into the 7.0 branch. Discussion ---------- [MonologBridge] Fix error cannot use object of type as array | Q | A | ------------- | --- | Branch? | 7.0 | Bug fix? | yes | New feature? | - | Deprecations? | - | Tickets | - | License | MIT Bug was introduced in #51091 ``` "e" => Error { #message: "Cannot use object of type Symfony\Component\Lock\Key as array" #code: 0 #file: "./excluded/symfony/src/Symfony/Bridge/Monolog/Formatter/ConsoleFormatter.php" #line: 191 -previous: Error { #message: "Cannot use object of type Symfony\Component\Lock\Key as array" #code: 0 #file: "./excluded/symfony/src/Symfony/Bridge/Monolog/Formatter/ConsoleFormatter.php" #line: 191 trace: { ./excluded/symfony/src/Symfony/Bridge/Monolog/Formatter/ConsoleFormatter.php:191 { Symfony\Bridge\Monolog\Formatter\ConsoleFormatter->dumpData(mixed $data, bool $colors = null): string^ › › if (($data['data'] ?? null) instanceof Data) { › $data = $data['data']; } ./excluded/symfony/src/Symfony/Bridge/Monolog/Formatter/ConsoleFormatter.php:171 { …} ./excluded/symfony/src/Symfony/Bridge/Monolog/Formatter/ConsoleFormatter.php:101 { …} ./vendor/monolog/monolog/src/Monolog/Handler/AbstractProcessingHandler.php:42 { …} ./excluded/symfony/src/Symfony/Bridge/Monolog/Handler/ConsoleHandler.php:85 { …} ./vendor/monolog/monolog/src/Monolog/Logger.php:379 { …} ./vendor/monolog/monolog/src/Monolog/Logger.php:580 { …} ./excluded/symfony/src/Symfony/Component/Lock/Lock.php:89 { …} ``` Commits ------- ec0df6d Fix error cannot use object of type as array
cc @Seldaek