From 26ba490be8ac5b378eee3d9e79a61d539e4600a2 Mon Sep 17 00:00:00 2001 From: "John.R" Date: Tue, 11 Jun 2024 11:09:01 +0200 Subject: [PATCH] chore: remove fixtures --- src/Api/Post/MultipartBody.php | 1 + src/Api/Post/Stream.php | 10 ---------- 2 files changed, 1 insertion(+), 10 deletions(-) diff --git a/src/Api/Post/MultipartBody.php b/src/Api/Post/MultipartBody.php index f61c78cf..78b6a776 100755 --- a/src/Api/Post/MultipartBody.php +++ b/src/Api/Post/MultipartBody.php @@ -5,6 +5,7 @@ use GuzzleHttp\Psr7\AppendStream; use GuzzleHttp\Psr7\StreamDecoratorTrait; use Psr\Http\Message\StreamInterface; +use PrestaShop\Module\PsEventbus\Api\Post\Stream; /** * Stream that when read returns bytes for a streaming multipart/form-data body diff --git a/src/Api/Post/Stream.php b/src/Api/Post/Stream.php index 223d9eb6..ff798f2b 100644 --- a/src/Api/Post/Stream.php +++ b/src/Api/Post/Stream.php @@ -264,16 +264,6 @@ public function seek($offset, $whence = SEEK_SET) return $this->seekable && fseek($this->stream, $offset, $whence) === 0; } - /** - * @param int<0, max> $length - * - * @return false|string - */ - public function read($length) - { - return $this->readable ? fread($this->stream, $length) : false; - } - /** * @param string $string *