From ad3d012c44d6a5a1686fea99cbfa560f0fb80448 Mon Sep 17 00:00:00 2001 From: David Buchmann Date: Sun, 1 Sep 2024 13:08:55 +0200 Subject: [PATCH] use array shape for phpdoc --- src/MultipartStreamBuilder.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/MultipartStreamBuilder.php b/src/MultipartStreamBuilder.php index ca54c05..0efb760 100644 --- a/src/MultipartStreamBuilder.php +++ b/src/MultipartStreamBuilder.php @@ -91,13 +91,13 @@ 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 array $options { + * @param string $name the formpost name + * @param string|resource|StreamInterface $resource + * @param array{'headers': array, 'filename': string} $options * - * @var array $headers additional headers ['header-name' => 'header-value'] - * @var string $filename - * } + * Options: + * - headers: additional headers as hashmap ['header-name' => 'header-value'] + * - filename: used to determine the mime type * * @return MultipartStreamBuilder */