1
0
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:
Jérémy DECOOL
2020-06-04 23:13:45 +02:00
parent 3022efff20
commit ec3b35f72c

View File

@@ -86,7 +86,7 @@ class RavenHandler extends AbstractProcessingHandler
// the record with the highest severity is the "main" one
$record = array_reduce($records, function ($highest, $record) {
if ($record['level'] > $highest['level']) {
if (null === $highest || $record['level'] > $highest['level']) {
return $record;
}