From ac7bbd3d8867208ae7318e96bce3da6f411b2320 Mon Sep 17 00:00:00 2001 From: Jan Stolle Date: Tue, 16 Jan 2024 16:11:13 +0100 Subject: [PATCH] Allow StreamInterface as raw HTTP Client body (#49705) * Allow StreamInterface as raw HTTP Client body Since the body payload is passed through to Guzzle, which in turn can handle Streams as well, this extends the versatility of the HTTP Client * Update PendingRequest.php --------- Co-authored-by: Taylor Otwell --- Client/PendingRequest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Client/PendingRequest.php b/Client/PendingRequest.php index 78e361fe..28defb4d 100644 --- a/Client/PendingRequest.php +++ b/Client/PendingRequest.php @@ -78,7 +78,7 @@ class PendingRequest /** * The raw body for the request. * - * @var string + * @var \Psr\Http\Message\StreamInterface|string */ protected $pendingBody; @@ -259,7 +259,7 @@ public function baseUrl(string $url) /** * Attach a raw body to the request. * - * @param string $content + * @param \Psr\Http\Message\StreamInterface|string $content * @param string $contentType * @return $this */