From fdba62f5b08ea6a333f593d56ba1b30142e98c96 Mon Sep 17 00:00:00 2001 From: Youssef Benhssaien Date: Sun, 13 Sep 2020 15:07:57 +0200 Subject: [PATCH] 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) --- http_client.rst | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/http_client.rst b/http_client.rst index c9eaf9007c9..67ad0efb527 100644 --- a/http_client.rst +++ b/http_client.rst @@ -138,9 +138,7 @@ You can configure the global options using the ``default_options`` option: .. code-block:: php-standalone $client = HttpClient::create([ - 'default_options' => [ - 'max_redirects' => 7, - ], + 'max_redirects' => 7, ]); Some options are described in this guide: