Skip to content

Commit

Permalink
🐛 fixed bug where $request is null
Browse files Browse the repository at this point in the history
  • Loading branch information
carbontwelve committed Dec 4, 2017
1 parent 3d27878 commit 395db2d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/App.php
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ public function dispatch(ServerRequest $request = null, $catchesExceptions = tru
}

$handler = $this->exceptionHandler;
$response = $handler($e, $request);
$response = $handler($e, $this->getContainer()->get('request'));

if (!$response instanceof \Psr\Http\Message\ResponseInterface) {
throw new InvalidHandlerResponseException('The exception handler ['.get_class($handler).'] did not return a valid response.');
Expand Down

0 comments on commit 395db2d

Please # to comment.