Skip to content

Commit

Permalink
Url, UrlImmutable: user & password are deprecated
Browse files Browse the repository at this point in the history
  • Loading branch information
dg committed Jan 12, 2025
1 parent 3e2587b commit 1e4f028
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Http/Url.php
Original file line number Diff line number Diff line change
Expand Up @@ -100,26 +100,30 @@ public function getScheme(): string
}


/** @deprecated */
public function setUser(string $user): static
{
$this->user = $user;
return $this;
}


/** @deprecated */
public function getUser(): string
{
return $this->user;
}


/** @deprecated */
public function setPassword(string $password): static
{
$this->password = $password;
return $this;
}


/** @deprecated */
public function getPassword(): string
{
return $this->password;
Expand Down
5 changes: 5 additions & 0 deletions src/Http/UrlImmutable.php
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ public function getScheme(): string
}


/** @deprecated */
public function withUser(string $user): static
{
$dolly = clone $this;
Expand All @@ -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;
Expand All @@ -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;
Expand Down

0 comments on commit 1e4f028

Please sign in to comment.