Merge pull request #10430 from kinglozzer/backtrace

FIX: Invalid argument warning in backtrace
This commit is contained in:
Guy Sartorelli 2022-08-01 20:42:47 +12:00 committed by GitHub
commit 051e74a289
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -122,7 +122,7 @@ class Backtrace
} }
} }
if ($match) { if ($match) {
foreach ($bt[$i]['args'] as $j => $arg) { foreach ($bt[$i]['args'] ?? [] as $j => $arg) {
$bt[$i]['args'][$j] = '<filtered>'; $bt[$i]['args'][$j] = '<filtered>';
} }
} }