Skip to content

Commit

Permalink
Merge pull request #65 from php-http/array-shape-doc
Browse files Browse the repository at this point in the history
use array shape for phpdoc
  • Loading branch information
dbu authored Sep 1, 2024
2 parents 4087940 + ad3d012 commit 02a0e13
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/MultipartStreamBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -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<string, string>, '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
*/
Expand Down

0 comments on commit 02a0e13

Please sign in to comment.