From a5b24de3bf87186266061a0dedd2921da4152c09 Mon Sep 17 00:00:00 2001 From: Artem Davletshin <49448966+davlet42@users.noreply.github.com> Date: Sun, 18 Jul 2021 20:58:58 +0300 Subject: [PATCH] Update StreamCommand.php https://docs.guzzlephp.org/en/stable/psr7.html#streams --- src/Intervention/Image/Commands/StreamCommand.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Intervention/Image/Commands/StreamCommand.php b/src/Intervention/Image/Commands/StreamCommand.php index 111c4756..6d659147 100644 --- a/src/Intervention/Image/Commands/StreamCommand.php +++ b/src/Intervention/Image/Commands/StreamCommand.php @@ -16,10 +16,10 @@ class StreamCommand extends AbstractCommand $format = $this->argument(0)->value(); $quality = $this->argument(1)->between(0, 100)->value(); - $this->setOutput(\GuzzleHttp\Psr7\stream_for( + $this->setOutput(\GuzzleHttp\Psr7\Utils::streamFor( $image->encode($format, $quality)->getEncoded() )); return true; } -} \ No newline at end of file +}