diff --git a/interfaces/UriString.php b/interfaces/UriString.php index 9b047faa..f6c753f9 100644 --- a/interfaces/UriString.php +++ b/interfaces/UriString.php @@ -278,7 +278,7 @@ public static function buildAuthority(array $components): ?string * * @return ComponentMap */ - public static function normalize(Stringable|string $uri): array + public static function parseAndNormalize(Stringable|string $uri): array { $components = UriString::parse($uri); if (null !== $components['scheme']) { diff --git a/uri/Uri.php b/uri/Uri.php index 9ccb65fc..002af630 100644 --- a/uri/Uri.php +++ b/uri/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::fromComponents(UriString::parseAndNormalize($this->toString())); } /**