From d801912d78271347562fd2126c0d1ad41c5aaddb Mon Sep 17 00:00:00 2001 From: ignace nyamagana butera Date: Fri, 27 Dec 2024 23:19:36 +0100 Subject: [PATCH] Simplify URI codebase --- Uri.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Uri.php b/Uri.php index 9ccb65fcc..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::normalize($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())); } /**