From 8157514d6abdc75e3a834ee3c897749ac1c910e5 Mon Sep 17 00:00:00 2001 From: Ruud Kamphuis Date: Wed, 4 Sep 2024 15:09:27 +0200 Subject: [PATCH 1/2] Unquote array shape field names Otherwise optionals don't work. See #66 --- src/MultipartStreamBuilder.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/MultipartStreamBuilder.php b/src/MultipartStreamBuilder.php index f09b308..8b2f22b 100644 --- a/src/MultipartStreamBuilder.php +++ b/src/MultipartStreamBuilder.php @@ -93,7 +93,7 @@ public function addData($resource, array $headers = []) * * @param string $name the formpost name * @param string|resource|StreamInterface $resource - * @param array{'headers?': array, 'filename?': string} $options + * @param array{headers?: array, filename?: string} $options * * Options: * - headers: additional headers as hashmap ['header-name' => 'header-value'] From 83529784013addea4cb85b52dcc9c7a7297a58fc Mon Sep 17 00:00:00 2001 From: David Buchmann Date: Wed, 4 Sep 2024 15:15:28 +0200 Subject: [PATCH 2/2] align parameter phpdoc --- src/MultipartStreamBuilder.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/MultipartStreamBuilder.php b/src/MultipartStreamBuilder.php index 8b2f22b..2576c9b 100644 --- a/src/MultipartStreamBuilder.php +++ b/src/MultipartStreamBuilder.php @@ -91,8 +91,8 @@ public function addData($resource, array $headers = []) /** * Add a resource to the Multipart Stream. * - * @param string $name the formpost name - * @param string|resource|StreamInterface $resource + * @param string $name the formpost name + * @param string|resource|StreamInterface $resource * @param array{headers?: array, filename?: string} $options * * Options: