mirror of
https://github.com/skipperbent/simple-php-router.git
synced 2026-06-17 08:47:52 +00:00
Merge pull request #702 from skipperbent/v5-development
Version 5.4.1.7
This commit is contained in:
@@ -72,7 +72,7 @@ class Url implements JsonSerializable
|
|||||||
|
|
||||||
public function parse(?string $url, bool $setOriginalPath = false): self
|
public function parse(?string $url, bool $setOriginalPath = false): self
|
||||||
{
|
{
|
||||||
if ($url !== null && $url !== '/') {
|
if ($url !== null) {
|
||||||
$data = $this->parseUrl($url);
|
$data = $this->parseUrl($url);
|
||||||
|
|
||||||
$this->scheme = $data['scheme'] ?? null;
|
$this->scheme = $data['scheme'] ?? null;
|
||||||
@@ -95,6 +95,7 @@ class Url implements JsonSerializable
|
|||||||
$this->setQueryString($data['query']);
|
$this->setQueryString($data['query']);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user