diff --git a/src/Exception/RequestException.php b/src/Exception/RequestException.php index 9c4631b..adee3c3 100644 --- a/src/Exception/RequestException.php +++ b/src/Exception/RequestException.php @@ -20,8 +20,12 @@ class RequestException extends HttpException * * @param RequestInterface $request The request. */ - public function __construct(RequestInterface $request, $message = "", $code = 0, Throwable $previous = null) - { + public function __construct( + RequestInterface $request, + string $message = "", + int $code = 0, + Throwable $previous = null + ) { parent::__construct($message, $code, $previous); $this->request = $request; diff --git a/src/Exception/ResponseException.php b/src/Exception/ResponseException.php index 901e563..e397a38 100644 --- a/src/Exception/ResponseException.php +++ b/src/Exception/ResponseException.php @@ -24,7 +24,7 @@ class ResponseException extends RequestException public function __construct( RequestInterface $request, ResponseInterface $response, - $message = "", + string $message = "", Throwable $previous = null ) { parent::__construct($request, $message, $response->getStatusCode(), $previous);