Protecting against unexpected flow

This commit is contained in:
Dennis Eichhorn 2016-03-26 18:26:22 +01:00
parent d1f6ba7f12
commit 0af064eebe

View File

@ -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 <d.eichhorn@oms.com>
*/
public function set(string $uri)
private function set(string $uri)
{
$this->uri = $uri;