From dd10ba60acdcab6d8f33b348d53837df995f6231 Mon Sep 17 00:00:00 2001 From: ignace nyamagana butera Date: Thu, 6 Jun 2024 23:02:17 +0200 Subject: [PATCH] Improve internal codebase --- BaseUri.php | 2 +- Uri.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/BaseUri.php b/BaseUri.php index 7d3d60ce..9d18f7d9 100644 --- a/BaseUri.php +++ b/BaseUri.php @@ -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 ); diff --git a/Uri.php b/Uri.php index bf06459c..045d798a 100644 --- a/Uri.php +++ b/Uri.php @@ -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(),