Skip to content

Commit

Permalink
update description for handler signature in phpdocs for setDefaultErr…
Browse files Browse the repository at this point in the history
…orHandler and setErrorHandler methods
  • Loading branch information
Patrick Rodacker committed Sep 17, 2019
1 parent 9c18e47 commit 87d8738
Showing 1 changed file with 14 additions and 10 deletions.
24 changes: 14 additions & 10 deletions Slim/Middleware/ErrorMiddleware.php
Expand Up @@ -142,13 +142,15 @@ public function getDefaultErrorHandler()
/**
* Set callable as the default Slim application error handler.
*
* This service MUST return a callable that accepts
* three arguments optionally four arguments.
* The callable signature MUST match the ErrorHandlerInterface
*
* @see \Slim\Interfaces\ErrorHandlerInterface
*
* 1. Instance of \Psr\Http\Message\ServerRequestInterface
* 2. Instance of \Psr\Http\Message\ResponseInterface
* 3. Instance of \Exception
* 4. Boolean displayErrorDetails (optional)
* 2. Instance of \Throwable
* 3. Boolean displayErrorDetails
* 4. Boolean $logErrors
* 5. Boolean $logErrorDetails
*
* The callable MUST return an instance of
* \Psr\Http\Message\ResponseInterface.
Expand All @@ -166,13 +168,15 @@ public function setDefaultErrorHandler($handler): self
* Set callable to handle scenarios where an error
* occurs when processing the current request.
*
* This service MUST return a callable that accepts
* three arguments optionally four arguments.
* The callable signature MUST match the ErrorHandlerInterface
*
* @see \Slim\Interfaces\ErrorHandlerInterface
*
* 1. Instance of \Psr\Http\Message\ServerRequestInterface
* 2. Instance of \Psr\Http\Message\ResponseInterface
* 3. Instance of \Exception
* 4. Boolean displayErrorDetails (optional)
* 2. Instance of \Throwable
* 3. Boolean displayErrorDetails
* 4. Boolean $logErrors
* 5. Boolean $logErrorDetails
*
* The callable MUST return an instance of
* \Psr\Http\Message\ResponseInterface.
Expand Down

0 comments on commit 87d8738

Please sign in to comment.