From 4837d6255937ceabbda6cb4f7a4cfaaca7e5d278 Mon Sep 17 00:00:00 2001 From: Debusschere Alexandre Date: Sat, 17 Aug 2019 15:41:27 +0700 Subject: [PATCH] Fixed stream constructor. --- src/Http/Stream.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Http/Stream.php b/src/Http/Stream.php index eeef984..c3af964 100644 --- a/src/Http/Stream.php +++ b/src/Http/Stream.php @@ -33,7 +33,7 @@ public function __construct($stream, string $mode = 'r+') $this->stream = $stream; } else { $this->stream = fopen('php://temp', $mode); - $this->stream->write($stream); + $this->write($stream); } }