Skip to content

Commit

Permalink
Update stream handling introducing dependency on guzzle, best to remo…
Browse files Browse the repository at this point in the history
…ve this if possible
  • Loading branch information
M1ke committed Apr 16, 2024
1 parent dd5b509 commit 0a2ebb8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Requests/SwaggerRequest.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<?php
namespace SturentsLib\Api\Requests;

use GuzzleHttp\Psr7\Utils;
use Psr\Http\Message\RequestInterface;
use Psr\Http\Message\StreamInterface;
use Psr\Http\Message\UriInterface;
Expand Down Expand Up @@ -220,7 +221,7 @@ public function withoutHeader($name) :self{
* @return StreamInterface Returns the body as a stream.
*/
public function getBody() :StreamInterface{
return $this->body;
return Utils::streamFor($this->body);
}

/**
Expand Down

0 comments on commit 0a2ebb8

Please sign in to comment.