From 0733b0e70507f1b36ad163ab4439277bc2a34e23 Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Tue, 26 Sep 2017 14:38:50 +0200 Subject: [PATCH] Fix uri path bug --- Uri/Http.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Uri/Http.php b/Uri/Http.php index 6dfbc0dce..c410ecbe4 100644 --- a/Uri/Http.php +++ b/Uri/Http.php @@ -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] ?? ''; } /**