From ceba822bc6f3f553db8e0f35bf2e3b406bc7bc05 Mon Sep 17 00:00:00 2001 From: Michi Hoffmann Date: Mon, 3 Jul 2023 23:31:54 +0200 Subject: [PATCH] Update Lumen typehint (#7314) --- src/platforms/php/guides/laravel/other-versions/lumen.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/platforms/php/guides/laravel/other-versions/lumen.mdx b/src/platforms/php/guides/laravel/other-versions/lumen.mdx index de7c01b780496..8fc800f0f283d 100644 --- a/src/platforms/php/guides/laravel/other-versions/lumen.mdx +++ b/src/platforms/php/guides/laravel/other-versions/lumen.mdx @@ -33,7 +33,7 @@ require __DIR__ . '/../app/Http/routes.php'; Add Sentry reporting to `app/Exceptions/Handler.php`: ```php {filename:app/Exceptions/Handler.php} -public function report(Exception $exception) +public function report(Throwable $exception) { if (app()->bound('sentry') && $this->shouldReport($exception)) { app('sentry')->captureException($exception);