diff --git a/composer.json b/composer.json index ba9fafb..f04c9f4 100644 --- a/composer.json +++ b/composer.json @@ -1,6 +1,6 @@ { "name": "codeinchq/lib-psr7responses", - "version": "1.1.7", + "version": "1.1.8", "description": "A collection of PSR-7 responses", "homepage": "https://github.com/codeinchq/lib-psr7responses", "type": "library", diff --git a/src/StreamResponse.php b/src/StreamResponse.php index 3cd3c4f..93ac6df 100644 --- a/src/StreamResponse.php +++ b/src/StreamResponse.php @@ -63,6 +63,6 @@ public function __construct($resource, ?string $mimeType = null, ?int $contentLe $headers["Content-Length"] = $contentLength; } - parent::__construct($status, $headers, stream_for($resource), $version, $reason); + parent::__construct($status, $headers, $stream, $version, $reason); } } \ No newline at end of file