From acd0bcded6705fa53d3150661a5709cea5b08000 Mon Sep 17 00:00:00 2001 From: Tobias Schultze Date: Sun, 22 May 2016 14:16:03 +0200 Subject: [PATCH] remove null default value for URI that does not make sense --- src/Client.php | 4 ++-- src/ClientInterface.php | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/Client.php b/src/Client.php index 496c3dc1..2932d1bb 100644 --- a/src/Client.php +++ b/src/Client.php @@ -104,7 +104,7 @@ class Client implements ClientInterface return $this->sendAsync($request, $options)->wait(); } - public function requestAsync($method, $uri = null, array $options = []) + public function requestAsync($method, $uri, array $options = []) { $options = $this->prepareDefaults($options); // Remove request modifying parameter because it can be done up-front. @@ -123,7 +123,7 @@ class Client implements ClientInterface return $this->transfer($request, $options); } - public function request($method, $uri = null, array $options = []) + public function request($method, $uri, array $options = []) { $options[RequestOptions::SYNCHRONOUS] = true; return $this->requestAsync($method, $uri, $options)->wait(); diff --git a/src/ClientInterface.php b/src/ClientInterface.php index 5222dabc..3f97d770 100644 --- a/src/ClientInterface.php +++ b/src/ClientInterface.php @@ -44,14 +44,14 @@ interface ClientInterface * relative path to append to the base path of the client. The URL can * contain the query string as well. * - * @param string $method HTTP method. - * @param string|UriInterface|null $uri URI object or string (default null). - * @param array $options Request options to apply. + * @param string $method HTTP method. + * @param string|UriInterface $uri URI object or string. + * @param array $options Request options to apply. * * @return ResponseInterface * @throws GuzzleException */ - public function request($method, $uri = null, array $options = []); + public function request($method, $uri, array $options = []); /** * Create and send an asynchronous HTTP request.