From 9836ff6c54247bbfbf7324e5f7bed41f0cb42b0b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dani=C3=ABl=20Klabbers?= Date: Mon, 8 May 2017 16:45:58 +0200 Subject: [PATCH] Update HandleErrors.php @franzliedke forgot to make variables available to the method, just triggered this but got a warning that all three variables are undefined. --- src/Http/Middleware/HandleErrors.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Http/Middleware/HandleErrors.php b/src/Http/Middleware/HandleErrors.php index 0c8897d9d..2790584a8 100644 --- a/src/Http/Middleware/HandleErrors.php +++ b/src/Http/Middleware/HandleErrors.php @@ -60,11 +60,11 @@ class HandleErrors try { return $out($request, $response); } catch (Exception $e) { - return $this->formatException($e); + return $this->formatException($e, $request, $response, $out); } } - protected function formatException(Exception $error) + protected function formatException(Exception $error, Request $request, Response $response, callable $out = null) { $status = 500; $errorCode = $error->getCode();