From 0a60b4678bd015eda0e684bd8abcef2cd68b6728 Mon Sep 17 00:00:00 2001 From: Dane Everitt Date: Sat, 23 Jan 2021 12:01:29 -0800 Subject: [PATCH] Correct this logic --- app/Exceptions/Handler.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/app/Exceptions/Handler.php b/app/Exceptions/Handler.php index 10d62e16..f80b9b26 100644 --- a/app/Exceptions/Handler.php +++ b/app/Exceptions/Handler.php @@ -64,6 +64,8 @@ class Handler extends ExceptionHandler * will capture specific exception types that we do not want to include * the detailed stack traces for since they could reveal credentials to * whoever can read the logs. + * + * @noinspection PhpUnusedLocalVariableInspection */ public function register() { @@ -71,11 +73,11 @@ class Handler extends ExceptionHandler $this->dontReport = []; } - $this->reportable(function (PDOException &$ex) { + $this->reportable(function (PDOException $ex) { $ex = $this->generateCleanedExceptionStack($ex); }); - $this->reportable(function (Swift_TransportException &$ex) { + $this->reportable(function (Swift_TransportException $ex) { $ex = $this->generateCleanedExceptionStack($ex); }); }