Skip to content

Commit 0b25bec

Browse files
authored
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 a8c12f4 commit 0b25bec

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
@@ -134,9 +134,7 @@ You can configure the global options using the ``default_options`` option:
134134
.. code-block:: php-standalone
135135
136136
$client = HttpClient::create([
137-
'default_options' => [
138-
'max_redirects' => 7,
139-
],
137+
'max_redirects' => 7,
140138
]);
141139
142140
Some options are described in this guide:

0 commit comments

Comments
 (0)