diff --git a/Uri/Http.php b/Uri/Http.php index d8601d5af..ef0d2310d 100644 --- a/Uri/Http.php +++ b/Uri/Http.php @@ -139,7 +139,8 @@ class Http implements UriInterface */ public function setRootPath(string $root) { - return $this->rootPath = $root; + $this->rootPath = $root; + $this->set($this->uri); } /** @@ -293,7 +294,7 @@ class Http implements UriInterface * @since 1.0.0 * @author Dennis Eichhorn */ - public function set(string $uri) + private function set(string $uri) { $this->uri = $uri;