Skip to content

Commit

Permalink
Improve internal codebase
Browse files Browse the repository at this point in the history
  • Loading branch information
nyamsprod committed Jun 6, 2024
1 parent 295c8dc commit dd10ba6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion BaseUri.php
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,7 @@ public function resolve(Stringable|string $uri): static
->withQuery($query)
->withHost($this->uri->getHost())
->withPort($this->uri->getPort())
->withUserInfo((string) $user, $pass)
->withUserInfo($user, $pass)
->withScheme($this->uri->getScheme()),
$this->uriFactory
);
Expand Down
2 changes: 1 addition & 1 deletion Uri.php
Original file line number Diff line number Diff line change
Expand Up @@ -373,7 +373,7 @@ private function formatPort(?int $port = null): ?int
/**
* Create a new instance from a string.
*/
public static function new(Stringable|string $uri = ''): self
public static function new(#[SensitiveParameter] Stringable|string $uri = ''): self
{
$components = match (true) {
$uri instanceof UriInterface => $uri->getComponents(),
Expand Down

0 comments on commit dd10ba6

Please sign in to comment.