1
0
mirror of https://github.com/guzzle/guzzle.git synced 2025-02-24 10:03:27 +01:00

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:
c6851d6e48/src/Client.php (L126) and c6851d6e48/src/ClientInterface.php (L54)

To fix this difference, i changed the `$uri` Parameter in the Interface to default Value `null`
This commit is contained in:
zf2timo 2016-01-23 17:53:11 +01:00
parent 5741733ee5
commit 1a5c9dc232

View File

@ -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.