Skip to content

Commit

Permalink
Fix type hinting
Browse files Browse the repository at this point in the history
  • Loading branch information
kocsismate committed Dec 12, 2018
1 parent 6dbffef commit 3bafdd7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Middleware/JsonApiExceptionHandlerMiddleware.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
use Psr\Http\Message\ServerRequestInterface;
use Psr\Http\Server\MiddlewareInterface;
use Psr\Http\Server\RequestHandlerInterface;
use Throwable;
use WoohooLabs\Yin\JsonApi\Exception\DefaultExceptionFactory;
use WoohooLabs\Yin\JsonApi\Exception\ExceptionFactoryInterface;
use WoohooLabs\Yin\JsonApi\Exception\JsonApiExceptionInterface;
Expand Down Expand Up @@ -79,7 +80,7 @@ protected function handleJsonApiException(JsonApiExceptionInterface $exception,
return $responder->genericError($exception->getErrorDocument(), null, $additionalMeta);
}

protected function getExceptionMeta(JsonApiExceptionInterface $exception): array
protected function getExceptionMeta(Throwable $exception): array
{
if ($this->verbose === false) {
return [];
Expand Down

0 comments on commit 3bafdd7

Please sign in to comment.