honeybadger-io /
honeybadger-laravel
| 1 | <?php |
||
| 2 | |||
| 3 | namespace Honeybadger\HoneybadgerLaravel\Breadcrumbs; |
||
| 4 | |||
| 5 | use Honeybadger\HoneybadgerLaravel\Concerns\HandlesEvents; |
||
| 6 | use Honeybadger\HoneybadgerLaravel\HoneybadgerLaravel; |
||
| 7 | |||
| 8 | class Breadcrumb |
||
| 9 | { |
||
| 10 | use HandlesEvents; |
||
| 11 | |||
| 12 | /** |
||
| 13 | * @var string |
||
| 14 | */ |
||
| 15 | public $handles; |
||
| 16 | |||
| 17 | public function handle($event) |
||
| 18 | { |
||
| 19 | // Doing this check again in case config was changed at runtime (also useful for tests) |
||
| 20 | if ( |
||
| 21 | config('honeybadger.breadcrumbs.enabled', true) === false |
||
| 22 | || ! in_array(static::class, config('honeybadger.breadcrumbs.automatic', HoneybadgerLaravel::DEFAULT_BREADCRUMBS)) |
||
| 23 | ) { |
||
| 24 | return; |
||
| 25 | } |
||
| 26 | |||
| 27 | try { |
||
| 28 | $this->handleEvent($event); |
||
|
0 ignored issues
–
show
|
|||
| 29 | } catch (\Throwable $e) { |
||
| 30 | // Do nothing; we shouldn't crash the user's app for this. |
||
| 31 | } |
||
| 32 | } |
||
| 33 | } |
||
| 34 |
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.
This is most likely a typographical error or the method has been renamed.