Skip to content

Commit 02a0e13

Browse files
authored
Merge pull request #65 from php-http/array-shape-doc
use array shape for phpdoc
2 parents 4087940 + ad3d012 commit 02a0e13

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/MultipartStreamBuilder.php

+6-6
Original file line numberDiff line numberDiff line change
@@ -91,13 +91,13 @@ public function addData($resource, array $headers = [])
9191
/**
9292
* Add a resource to the Multipart Stream.
9393
*
94-
* @param string $name the formpost name
95-
* @param string|resource|StreamInterface $resource
96-
* @param array $options {
94+
* @param string $name the formpost name
95+
* @param string|resource|StreamInterface $resource
96+
* @param array{'headers': array<string, string>, 'filename': string} $options
9797
*
98-
* @var array $headers additional headers ['header-name' => 'header-value']
99-
* @var string $filename
100-
* }
98+
* Options:
99+
* - headers: additional headers as hashmap ['header-name' => 'header-value']
100+
* - filename: used to determine the mime type
101101
*
102102
* @return MultipartStreamBuilder
103103
*/

0 commit comments

Comments
 (0)