This commit is contained in:
2021-08-30 17:20:22 +08:00
parent 3d4c4bcd54
commit 5727c4edf8
2 changed files with 16 additions and 14 deletions
+1 -1
View File
@@ -41,7 +41,7 @@ class Uri implements UriInterface
public function getExplode(): array
{
if ($this->path == '/' || $this->path == '') {
return [''];
return ['/'];
}
if (empty($this->_explode)) {
$this->_explode = array_filter(explode('/', $this->path));