Skip to content
This repository has been archived by the owner on Feb 5, 2019. It is now read-only.

Commit

Permalink
bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Joan Fabrégat committed Mar 4, 2018
1 parent 5447c29 commit bcdfff1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "codeinchq/lib-psr7responses",
"version": "1.1.11",
"version": "1.1.12",
"description": "A collection of PSR-7 responses",
"homepage": "https://github.com/codeinchq/lib-psr7responses",
"type": "library",
Expand Down
2 changes: 1 addition & 1 deletion src/ResponseException.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ public function __construct(string $message, ResponseInterface $response, ?int $
?Throwable $previous = null)
{
$this->response = $response;
parent::__construct($message, $code, $previous);
parent::__construct($message, $code ?? 0, $previous);
}

/**
Expand Down

0 comments on commit bcdfff1

Please sign in to comment.