Skip to content

Commit

Permalink
Simplify Uri generation
Browse files Browse the repository at this point in the history
  • Loading branch information
nyamsprod committed Jul 20, 2024
1 parent 81b2cf0 commit 54795f4
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions uri/Uri.php
Original file line number Diff line number Diff line change
Expand Up @@ -227,10 +227,9 @@ private function __construct(
$this->path = $this->formatPath($path);
$this->query = Encoder::encodeQueryOrFragment($query);
$this->fragment = Encoder::encodeQueryOrFragment($fragment);
$components = $this->toComponents();
$this->userInfo = $this->formatUserInfo($this->user, $this->pass);
$this->authority = UriString::buildAuthority($components);
$this->uri = UriString::build($components);
$this->authority = UriString::buildAuthority($this->toComponents());
$this->uri = UriString::buildUri($this->scheme, $this->authority, $this->path, $this->query, $this->fragment);

$this->assertValidState();
}
Expand Down

0 comments on commit 54795f4

Please sign in to comment.