Skip to content

Commit 8bd50fa

Browse files
committed
Improve Uri implementation
1 parent 2d9f383 commit 8bd50fa

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

Uri.php

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -487,11 +487,6 @@ public static function tryNew(Stringable|string|null $uri = ''): ?self
487487
*/
488488
public static function new(Stringable|string $uri = ''): self
489489
{
490-
$uri = (string) $uri;
491-
if ('' === $uri) {
492-
return new self(null, null, null, null, null, '', null, null);
493-
}
494-
495490
return new self(...UriString::parse($uri));
496491
}
497492

0 commit comments

Comments
 (0)