mirror of
https://github.com/guzzle/guzzle.git
synced 2025-02-24 18:13:00 +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)
andc6851d6e48/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:
parent
5741733ee5
commit
1a5c9dc232
@ -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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user