Skip to content

Commit

Permalink
Resolved issue with undefined stream_for
Browse files Browse the repository at this point in the history
  • Loading branch information
ivanruzak committed Dec 14, 2023
1 parent 69bc603 commit d2a659a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Client.php
Expand Up @@ -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
{
Expand Down Expand Up @@ -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',
Expand Down

0 comments on commit d2a659a

Please sign in to comment.