Fix uri path bug

This commit is contained in:
Dennis Eichhorn 2017-09-26 14:38:50 +02:00
parent 46645f7f2b
commit 0733b0e705

View File

@ -297,7 +297,7 @@ class Http implements UriInterface
*/
public function getPathElement(int $pos = null) : string
{
return explode('/', $this->path)[$pos];
return explode('/', $this->path)[$pos] ?? '';
}
/**