Skip to content

Commit fdba62f

Browse files
ybenhssaienjaviereguiluz
authored andcommitted
Update http_client.rst : HttpClient::Create() standalone
The method `HttpClient::create(array $defaultOptions, ..)` accepts an array of default options as a parameter (without the `default_options` key)
1 parent 9da4f0d commit fdba62f

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

http_client.rst

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -138,9 +138,7 @@ You can configure the global options using the ``default_options`` option:
138138
.. code-block:: php-standalone
139139
140140
$client = HttpClient::create([
141-
'default_options' => [
142-
'max_redirects' => 7,
143-
],
141+
'max_redirects' => 7,
144142
]);
145143
146144
Some options are described in this guide:

0 commit comments

Comments
 (0)