Skip to content

Commit

Permalink
Simplify URI codebase
Browse files Browse the repository at this point in the history
  • Loading branch information
nyamsprod committed Dec 27, 2024
1 parent 2b0e109 commit cb21a4b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion interfaces/UriString.php
Original file line number Diff line number Diff line change
Expand Up @@ -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']) {
Expand Down
2 changes: 1 addition & 1 deletion uri/Uri.php
Original file line number Diff line number Diff line change
Expand Up @@ -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()));
}

/**
Expand Down

0 comments on commit cb21a4b

Please sign in to comment.