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

Commit

Permalink
Merge pull request #5 from CodeIncHQ/1.x
Browse files Browse the repository at this point in the history
fixes #4
  • Loading branch information
Joan Fabrégat authored Mar 26, 2018
2 parents cdb0839 + 4c5cdc8 commit bfdc176
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "codeinc/psr7-responses",
"version": "1.2.0",
"version": "1.2.1",
"description": "A collection of PSR-7 responses",
"homepage": "https://github.com/CodeIncHQ/Psr7Responses",
"type": "library",
Expand Down
7 changes: 4 additions & 3 deletions src/ErrorResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
//
declare(strict_types = 1);
namespace CodeInc\Psr7Responses;
use CodeInc\ErrorDisplay\HtmlErrorRenderer;
use CodeInc\ErrorRenderer\HtmlErrorRenderer;


/**
Expand All @@ -41,8 +41,9 @@ class ErrorResponse extends HtmlResponse {
* @param string $version
* @param null|string $reason
*/
public function __construct(\Throwable $throwable, ?string $charset = null, int $status = 200,
array $headers = [], string $version = '1.1', ?string $reason = null)
public function __construct(\Throwable $throwable, ?string $charset = null,
int $status = 200, array $headers = [], string $version = '1.1',
?string $reason = null)
{
parent::__construct((new HtmlErrorRenderer($throwable))->get(),
$charset, $status, $headers, $version, $reason);
Expand Down

0 comments on commit bfdc176

Please sign in to comment.