From 0773a3f228a8dda1849e6331e86ed411098a761f Mon Sep 17 00:00:00 2001 From: Benjamin Hubert Date: Mon, 24 Jul 2017 12:07:08 +0200 Subject: [PATCH] Fixing a missing return call on the Client --- src/Client/Client.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/Client/Client.php b/src/Client/Client.php index 6ad2971..3e8ecb1 100644 --- a/src/Client/Client.php +++ b/src/Client/Client.php @@ -263,27 +263,27 @@ private function getUri(): UriInterface $uri = $this->getNewUri(); if (!empty($this->apiUrl['scheme'])) { - $uri->withScheme($this->apiUrl['scheme']); + $uri = $uri->withScheme($this->apiUrl['scheme']); } if (!empty($this->apiUrl['host'])) { - $uri->withHost($this->apiUrl['host']); + $uri = $uri->withHost($this->apiUrl['host']); } if (!empty($this->apiUrl['port'])) { - $uri->withPort($this->apiUrl['port']); + $uri = $uri->withPort($this->apiUrl['port']); } if (!empty($this->apiUrl['path'])) { - $uri->withPath($this->apiUrl['path']); + $uri = $uri->withPath($this->apiUrl['path']); } if (!empty($this->apiUrl['query'])) { - $uri->withQuery($this->apiUrl['query']); + $uri = $uri->withQuery($this->apiUrl['query']); } if (!empty($this->apiUrl['fragment'])) { - $uri->withFragment($this->apiUrl['fragment']); + $uri = $uri->withFragment($this->apiUrl['fragment']); } return $uri;