Correct this logic

This commit is contained in:
Dane Everitt
2021-01-23 12:01:29 -08:00
parent b0b23c4b4f
commit 0a60b4678b

View File

@@ -64,6 +64,8 @@ class Handler extends ExceptionHandler
* will capture specific exception types that we do not want to include * will capture specific exception types that we do not want to include
* the detailed stack traces for since they could reveal credentials to * the detailed stack traces for since they could reveal credentials to
* whoever can read the logs. * whoever can read the logs.
*
* @noinspection PhpUnusedLocalVariableInspection
*/ */
public function register() public function register()
{ {
@@ -71,11 +73,11 @@ class Handler extends ExceptionHandler
$this->dontReport = []; $this->dontReport = [];
} }
$this->reportable(function (PDOException &$ex) { $this->reportable(function (PDOException $ex) {
$ex = $this->generateCleanedExceptionStack($ex); $ex = $this->generateCleanedExceptionStack($ex);
}); });
$this->reportable(function (Swift_TransportException &$ex) { $this->reportable(function (Swift_TransportException $ex) {
$ex = $this->generateCleanedExceptionStack($ex); $ex = $this->generateCleanedExceptionStack($ex);
}); });
} }