Skip to content

Commit 60df296

Browse files
committed
update for psr/http-message ^2.0
1 parent 73c9c4e commit 60df296

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/Common/Uri.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ public function getFragment(): string
161161
return $this->fragment;
162162
}
163163

164-
public function withScheme($scheme)
164+
public function withScheme(string $scheme): UriInterface
165165
{
166166
return new self(
167167
strtolower($scheme),
@@ -174,7 +174,7 @@ public function withScheme($scheme)
174174
);
175175
}
176176

177-
public function withUserInfo($user, $password = null)
177+
public function withUserInfo($user, ?string $password = null): UriInterface
178178
{
179179
$info = $user;
180180
if ($password !== null && $password !== '') {
@@ -192,7 +192,7 @@ public function withUserInfo($user, $password = null)
192192
);
193193
}
194194

195-
public function withHost($host)
195+
public function withHost(string $host): UriInterface
196196
{
197197
return new self(
198198
$this->scheme,
@@ -205,7 +205,7 @@ public function withHost($host)
205205
);
206206
}
207207

208-
public function withPort($port)
208+
public function withPort(?int $port): UriInterface
209209
{
210210
return new self(
211211
$this->scheme,
@@ -218,7 +218,7 @@ public function withPort($port)
218218
);
219219
}
220220

221-
public function withPath($path)
221+
public function withPath(string $path): UriInterface
222222
{
223223
return new self(
224224
$this->scheme,
@@ -231,7 +231,7 @@ public function withPath($path)
231231
);
232232
}
233233

234-
public function withQuery($query)
234+
public function withQuery(string $query): UriInterface
235235
{
236236
return new self(
237237
$this->scheme,
@@ -244,7 +244,7 @@ public function withQuery($query)
244244
);
245245
}
246246

247-
public function withFragment($fragment)
247+
public function withFragment(string $fragment): UriInterface
248248
{
249249
return new self(
250250
$this->scheme,

0 commit comments

Comments
 (0)