Skip to content
This repository has been archived by the owner on Aug 14, 2023. It is now read-only.

Commit

Permalink
Fix errors reported by Psalm
Browse files Browse the repository at this point in the history
Added missing types to ctor args.
  • Loading branch information
XedinUnknown committed Aug 13, 2023
1 parent a166969 commit b75bf73
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
8 changes: 6 additions & 2 deletions src/Exception/RequestException.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion src/Exception/ResponseException.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit b75bf73

Please sign in to comment.