Skip to content

Commit

Permalink
Merge pull request #228 from gkralik/patch-1
Browse files Browse the repository at this point in the history
Custom error handler class: fix signature
  • Loading branch information
akrabat committed Jun 24, 2017
2 parents d616dc2 + e6930d6 commit fa1a7a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/handlers/error.md
Expand Up @@ -70,7 +70,7 @@ Error handlers may also be defined as an invokable class.

{% highlight php %}
class CustomHandler {
public function __invoke($request, $response, $args) {
public function __invoke($request, $response, $exception) {
return $response
->withStatus(500)
->withHeader('Content-Type', 'text/html')
Expand Down

0 comments on commit fa1a7a1

Please sign in to comment.