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.
This commit is contained in:
Daniël Klabbers 2017-05-08 16:45:58 +02:00 committed by GitHub
parent bb1c655c90
commit 9836ff6c54

View File

@ -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();