From 4c5cdc81650b00bc0352ff849a09b67144673715 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joan=20Fabr=C3=A9gat?= Date: Mon, 26 Mar 2018 10:56:33 +0200 Subject: [PATCH] fixes #4 --- composer.json | 2 +- src/ErrorResponse.php | 7 ++++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/composer.json b/composer.json index 7c6483d..98c0c9c 100644 --- a/composer.json +++ b/composer.json @@ -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", diff --git a/src/ErrorResponse.php b/src/ErrorResponse.php index 8f16a87..b7c65a5 100644 --- a/src/ErrorResponse.php +++ b/src/ErrorResponse.php @@ -21,7 +21,7 @@ // declare(strict_types = 1); namespace CodeInc\Psr7Responses; -use CodeInc\ErrorDisplay\HtmlErrorRenderer; +use CodeInc\ErrorRenderer\HtmlErrorRenderer; /** @@ -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);