Skip to content

Commit 78463ea

Browse files
authored
Merge pull request #282 from yookoala/update-multipart-stream-builder
Update MultipartStreamBuilder documentation
2 parents b7be776 + 55a9676 commit 78463ea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/multipart-stream-builder.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ To build a multipart stream you may use the ``MultipartStreamBuilder``. It is no
4646
$builder
4747
->addResource('foo', $stream)
4848
->addResource('bar', fopen($filePath, 'r'), ['filename' => 'bar.png'])
49-
->addResource('baz', 'string', ['headers' => ['Content-Type' => 'text/plain']]);
49+
->addData('baz', ['headers' => ['Content-Type' => 'text/plain']]);
5050
5151
$multipartStream = $builder->build();
5252
$boundary = $builder->getBoundary();

0 commit comments

Comments
 (0)