Skip to content

Commit

Permalink
Simplify UriString method return type
Browse files Browse the repository at this point in the history
  • Loading branch information
nyamsprod committed Dec 27, 2024
1 parent c367cc2 commit ef14691
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions 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::parseAndNormalize($this->toString()));
return self::new(UriString::normalize($this->toString()));
}

/**
Expand All @@ -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()));
}

/**
Expand Down

0 comments on commit ef14691

Please sign in to comment.