From 1a5c9dc232db914752a1a6ccc54f6553d34f834e Mon Sep 17 00:00:00 2001 From: zf2timo Date: Sat, 23 Jan 2016 17:53:11 +0100 Subject: [PATCH] ClientInterface::request did not accept null I found a difference between the ClientInterface and the Client Implementation Request Method. The `$uri` is required in the Interface, however in the Implementation it is allowed to be null. See: https://github.com/guzzle/guzzle/blob/c6851d6e48f63b69357cbfa55bca116448140e0c/src/Client.php#L126 and https://github.com/guzzle/guzzle/blob/c6851d6e48f63b69357cbfa55bca116448140e0c/src/ClientInterface.php#L54 To fix this difference, i changed the `$uri` Parameter in the Interface to default Value `null` --- src/ClientInterface.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ClientInterface.php b/src/ClientInterface.php index 19068e1f..dec03508 100644 --- a/src/ClientInterface.php +++ b/src/ClientInterface.php @@ -51,7 +51,7 @@ interface ClientInterface * @return ResponseInterface * @throws GuzzleException */ - public function request($method, $uri, array $options = []); + public function request($method, $uri = null, array $options = []); /** * Create and send an asynchronous HTTP request.