We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 8923bee + 0634ba7 commit a2843d5Copy full SHA for a2843d5
src/Pecee/Http/Url.php
@@ -72,7 +72,7 @@ public function __construct(?string $url)
72
73
public function parse(?string $url, bool $setOriginalPath = false): self
74
{
75
- if ($url !== null && $url !== '/') {
+ if ($url !== null) {
76
$data = $this->parseUrl($url);
77
78
$this->scheme = $data['scheme'] ?? null;
@@ -95,6 +95,7 @@ public function parse(?string $url, bool $setOriginalPath = false): self
95
$this->setQueryString($data['query']);
96
}
97
98
+
99
return $this;
100
101
0 commit comments