mirror of
https://github.com/Seldaek/monolog.git
synced 2025-08-05 12:47:39 +02:00
Fix array offset access on null in RavenHandler
This commit is contained in:
@@ -86,7 +86,7 @@ class RavenHandler extends AbstractProcessingHandler
|
|||||||
|
|
||||||
// the record with the highest severity is the "main" one
|
// the record with the highest severity is the "main" one
|
||||||
$record = array_reduce($records, function ($highest, $record) {
|
$record = array_reduce($records, function ($highest, $record) {
|
||||||
if ($record['level'] > $highest['level']) {
|
if (null === $highest || $record['level'] > $highest['level']) {
|
||||||
return $record;
|
return $record;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user