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. * 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();