Skip to content

Commit bffd417

Browse files
authored
Change debug trace limit count (#622)
1 parent b138b05 commit bffd417

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Sentry/Laravel/Integration.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ public static function captureUnhandledException(Throwable $throwable): ?EventId
200200
private static function makeAnEducatedGuessIfTheExceptionMaybeWasHandled(): bool
201201
{
202202
// We limit the amount of backtrace frames since it is very unlikely to be any deeper
203-
$trace = debug_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS, 10);
203+
$trace = debug_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS, 20);
204204

205205
// We are looking for `$handler->report()` to be called from the `report()` function
206206
foreach ($trace as $frameIndex => $frame) {
@@ -228,7 +228,7 @@ private static function makeAnEducatedGuessIfTheExceptionMaybeWasHandled(): bool
228228
}
229229

230230
// If we reached this point we can be pretty sure the `report` function was called
231-
// and we can can come to the educated conclusion the exception was indeed handled
231+
// and we can come to the educated conclusion the exception was indeed handled
232232
return true;
233233
}
234234

0 commit comments

Comments
 (0)