Skip to content

Commit 955a38e

Browse files
wimulkemanWim Ulkeman
and
Wim Ulkeman
authored
fix: check index is availability in method SentryHandler::handleBatch (#515)
Co-authored-by: Wim Ulkeman <wulkeman@assuradeurengilde.nl>
1 parent c9077d6 commit 955a38e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Sentry/Laravel/SentryHandler.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ function ($record) use ($level) {
9090
$record = array_reduce(
9191
$records,
9292
function ($highest, $record) {
93-
if ($record['level'] > $highest['level']) {
93+
if ($highest === null || $record['level'] > $highest['level']) {
9494
return $record;
9595
}
9696

0 commit comments

Comments
 (0)