diff --git a/src/Http/Url.php b/src/Http/Url.php index de9860f0..447f5e63 100644 --- a/src/Http/Url.php +++ b/src/Http/Url.php @@ -100,6 +100,7 @@ public function getScheme(): string } + /** @deprecated */ public function setUser(string $user): static { $this->user = $user; @@ -107,12 +108,14 @@ public function setUser(string $user): static } + /** @deprecated */ public function getUser(): string { return $this->user; } + /** @deprecated */ public function setPassword(string $password): static { $this->password = $password; @@ -120,6 +123,7 @@ public function setPassword(string $password): static } + /** @deprecated */ public function getPassword(): string { return $this->password; diff --git a/src/Http/UrlImmutable.php b/src/Http/UrlImmutable.php index 9702135f..aa8e9992 100644 --- a/src/Http/UrlImmutable.php +++ b/src/Http/UrlImmutable.php @@ -78,6 +78,7 @@ public function getScheme(): string } + /** @deprecated */ public function withUser(string $user): static { $dolly = clone $this; @@ -87,12 +88,14 @@ public function withUser(string $user): static } + /** @deprecated */ public function getUser(): string { return $this->user; } + /** @deprecated */ public function withPassword(string $password): static { $dolly = clone $this; @@ -102,12 +105,14 @@ public function withPassword(string $password): static } + /** @deprecated */ public function getPassword(): string { return $this->password; } + /** @deprecated */ public function withoutUserInfo(): static { $dolly = clone $this;