1
0
mirror of https://github.com/Intervention/image.git synced 2025-08-30 09:10:21 +02:00

Update StreamCommand.php

https://docs.guzzlephp.org/en/stable/psr7.html#streams
This commit is contained in:
Artem Davletshin
2021-07-18 20:58:58 +03:00
committed by GitHub
parent a2d7238069
commit a5b24de3bf

View File

@@ -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;
}
}
}