From d820669bd198a2b23d64b035c873a079a49897bf Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Fri, 31 Dec 2021 00:58:00 -0700 Subject: [PATCH 1/2] Update StatusController, change param signature --- app/Http/Controllers/StatusController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Http/Controllers/StatusController.php b/app/Http/Controllers/StatusController.php index 7d6099a28..ea4b2fae3 100644 --- a/app/Http/Controllers/StatusController.php +++ b/app/Http/Controllers/StatusController.php @@ -28,7 +28,7 @@ use App\Util\Media\License; class StatusController extends Controller { - public function show(Request $request, $username, int $id) + public function show(Request $request, $username, $id) { $user = Profile::whereNull('domain')->whereUsername($username)->firstOrFail(); From c481e473d81b84e7c09467d8f2a12f4849141b76 Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Fri, 31 Dec 2021 00:58:16 -0700 Subject: [PATCH 2/2] Update Exception handler --- app/Exceptions/Handler.php | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/app/Exceptions/Handler.php b/app/Exceptions/Handler.php index d72030a6b..236f933f1 100644 --- a/app/Exceptions/Handler.php +++ b/app/Exceptions/Handler.php @@ -41,6 +41,18 @@ class Handler extends ExceptionHandler parent::report($exception); } + /** + * Register the exception handling callbacks for the application. + * + * @return void + */ + public function register() + { + $this->reportable(function (\BadMethodCallException $e) { + return app()->environment() !== 'production'; + }); + } + /** * Render an exception into an HTTP response. *