diff --git a/Uri.php b/Uri.php index 002af630a..4a4cc9cb0 100644 --- a/Uri.php +++ b/Uri.php @@ -1670,7 +1670,7 @@ public function equals(UriInterface|Stringable|string $uri, bool $excludeFragmen */ public function normalize(): UriInterface { - return self::fromComponents(UriString::parseAndNormalize($this->toString())); + return self::new(UriString::normalize($this->toString())); } /** @@ -1686,7 +1686,7 @@ public function normalize(): UriInterface */ public function resolve(Stringable|string $uri): UriInterface { - return self::fromComponents(UriString::resolve($uri, $this->toString())); + return self::new(UriString::resolve($uri, $this->toString())); } /**