Skip to content

Commit

Permalink
Merge pull request #2839 from lordrhodos/fix-errohandler-description
Browse files Browse the repository at this point in the history
4.x - fixes description for handler signature in phpdocs
  • Loading branch information
l0gicgate committed Sep 19, 2019
2 parents 9c18e47 + 87d8738 commit 2c9adea
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 2c9adea

Please sign in to comment.