Skip to content

Commit 86931e7

Browse files
committed
Url, UrlImmutable: user & password are deprecated
1 parent fea62b7 commit 86931e7

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

src/Http/Url.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,26 +100,30 @@ public function getScheme(): string
100100
}
101101

102102

103+
/** @deprecated */
103104
public function setUser(string $user): static
104105
{
105106
$this->user = $user;
106107
return $this;
107108
}
108109

109110

111+
/** @deprecated */
110112
public function getUser(): string
111113
{
112114
return $this->user;
113115
}
114116

115117

118+
/** @deprecated */
116119
public function setPassword(string $password): static
117120
{
118121
$this->password = $password;
119122
return $this;
120123
}
121124

122125

126+
/** @deprecated */
123127
public function getPassword(): string
124128
{
125129
return $this->password;

src/Http/UrlImmutable.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ public function getScheme(): string
7878
}
7979

8080

81+
/** @deprecated */
8182
public function withUser(string $user): static
8283
{
8384
$dolly = clone $this;
@@ -87,12 +88,14 @@ public function withUser(string $user): static
8788
}
8889

8990

91+
/** @deprecated */
9092
public function getUser(): string
9193
{
9294
return $this->user;
9395
}
9496

9597

98+
/** @deprecated */
9699
public function withPassword(string $password): static
97100
{
98101
$dolly = clone $this;
@@ -102,12 +105,14 @@ public function withPassword(string $password): static
102105
}
103106

104107

108+
/** @deprecated */
105109
public function getPassword(): string
106110
{
107111
return $this->password;
108112
}
109113

110114

115+
/** @deprecated */
111116
public function withoutUserInfo(): static
112117
{
113118
$dolly = clone $this;

0 commit comments

Comments
 (0)