diff --git a/src/Client.php b/src/Client.php index 5f30ff8..f2a57d6 100644 --- a/src/Client.php +++ b/src/Client.php @@ -4,7 +4,7 @@ use GuzzleHttp\Psr7\MultipartStream; use GuzzleHttp\Psr7\Request; -use function GuzzleHttp\Psr7\stream_for; +use GuzzleHttp\Psr7\Utils; class Client implements ClientInterface { @@ -92,7 +92,7 @@ public function setClient($client) */ public function transfer($body, $type = 'xml') { - $post_body = stream_for($body); + $post_body = Utils::streamFor($body); $multipart = new MultipartStream([ [ 'name' => 'fil',