bugsnag / bugsnag-laravel

BugSnag notifier for the Laravel PHP framework. Monitor and report Laravel errors.
https://docs.bugsnag.com/platforms/php/laravel/
MIT License
874 stars 129 forks source link

Fix events from CLI commands always being marked handled #503

Closed imjoehaines closed 1 year ago

imjoehaines commented 1 year ago

Goal

When a CLI command is run, NunoMaduro\Collision will end up in the backtrace where we expected to find a built-in Laravel or Lumen class (assuming Collision is installed)

This meant the UnhandledState middleware was not correctly marking these events as 'unhandled'

The BacktraceProcessor now supports NunoMaduro\Collision as a vendor namespace and so can mark these events as unhandled correctly