fix: Fix query handling

This commit is contained in:
Michael Gerdemann
2020-01-19 11:04:51 +01:00
parent ed75790103
commit e9636cc070

View File

@ -75,7 +75,7 @@ class Client
*/
public function request(string $uri = '', string $method = 'GET', array $options = []): ResponseInterface
{
if (!empty($this->config['query']) && !empty($options['query'])) {
if (!empty($this->config['query']) && isset($options['query'])) {
$options['query'] = array_merge($this->config['query'], $options['query']);
}
return $this->httpClient->request($method, $uri, $options);