From 0d137e94480b275aadd1f2536a76d91cf580711c Mon Sep 17 00:00:00 2001 From: Guilliam Xavier Date: Sat, 23 May 2020 20:58:46 +0200 Subject: [PATCH] [6.5] Remove obsolete statement in `handler` option docs (#2567) * Remove obsolete statement in handler option phpDoc * Remove obsolete statement in handler option doc --- docs/quickstart.rst | 3 +-- src/Client.php | 5 ++--- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/docs/quickstart.rst b/docs/quickstart.rst index 1c6988c3a..7a3f35fbd 100644 --- a/docs/quickstart.rst +++ b/docs/quickstart.rst @@ -67,8 +67,7 @@ The client constructor accepts an associative array of options: function is called with a ``Psr7\Http\Message\RequestInterface`` and array of transfer options, and must return a ``GuzzleHttp\Promise\PromiseInterface`` that is fulfilled with a - ``Psr7\Http\Message\ResponseInterface`` on success. ``handler`` is a - constructor only option that cannot be overridden in per/request options. + ``Psr7\Http\Message\ResponseInterface`` on success. ``...`` (mixed) All other options passed to the constructor are used as default diff --git a/src/Client.php b/src/Client.php index 2caac7584..315a022cf 100644 --- a/src/Client.php +++ b/src/Client.php @@ -47,9 +47,8 @@ class Client implements ClientInterface * wire. The function is called with a Psr7\Http\Message\RequestInterface * and array of transfer options, and must return a * GuzzleHttp\Promise\PromiseInterface that is fulfilled with a - * Psr7\Http\Message\ResponseInterface on success. "handler" is a - * constructor only option that cannot be overridden in per/request - * options. If no handler is provided, a default handler will be created + * Psr7\Http\Message\ResponseInterface on success. + * If no handler is provided, a default handler will be created * that enables all of the request options below by attaching all of the * default middleware to the handler. * - base_uri: (string|UriInterface) Base URI of the client that is merged