From f18e0bb2f9161b069190d953f968f0fecc96fab3 Mon Sep 17 00:00:00 2001 From: Ivan <90388848+ivanruzak@users.noreply.github.com> Date: Thu, 14 Dec 2023 09:44:33 +0200 Subject: [PATCH] Resolved issue with undefined stream_for (#14) --- src/Client.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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',