Skip to content

Commit 954a354

Browse files
committed
Add trace_offset to error handler
Using the trace_offset will allow wrapped errors to have the correct code and context displayed. Refs #718
1 parent 6ce871a commit 954a354

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/Plugin.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@ function ($code, $message, $file, $line, $context = null) use (&$previousHandler
8787
return;
8888
}
8989
if ($previousHandler) {
90+
$context['_trace_frame_offset'] = 1;
9091
return $previousHandler($code, $message, $file, $line, $context);
9192
}
9293
}

0 commit comments

Comments
 (0)