Skip to content

Commit

Permalink
bug #50599 [MonologBridge] widen return type for Monolog 3 compatibil…
Browse files Browse the repository at this point in the history
…ity (xabbuh)

This PR was merged into the 6.3 branch.

Discussion
----------

[MonologBridge] widen return type for Monolog 3 compatibility

| Q             | A
| ------------- | ---
| Branch?       | 6.3
| Bug fix?      | yes
| New feature?  | no
| Deprecations? | no
| Tickets       | Fix #50121 (comment)
| License       | MIT
| Doc PR        |

Commits
-------

40a8561 widen return type for Monolog 3 compatibility
  • Loading branch information
nicolas-grekas committed Jun 8, 2023
2 parents 26147ce + 40a8561 commit f6c8b0f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Symfony/Bridge/Monolog/Handler/NotifierHandler.php
Expand Up @@ -71,7 +71,7 @@ private function notify(array $records): void
$this->notifier->send($notification, ...$this->notifier->getAdminRecipients());
}

private function getHighestRecord(array $records): array
private function getHighestRecord(array $records): array|LogRecord
{
$highestRecord = null;
foreach ($records as $record) {
Expand Down

0 comments on commit f6c8b0f

Please sign in to comment.