@@ -218,7 +218,7 @@ discard block |
||
218 | 218 | * This method retains the immutability of the message and returns an instance that has the |
219 | 219 | * new and/or updated header and value. |
220 | 220 | * @param string $name Case-insensitive header field name. |
221 | - * @param string|string[] $value Header value(s). |
|
221 | + * @param string $value Header value(s). |
|
222 | 222 | * @return static |
223 | 223 | * @throws \InvalidArgumentException for invalid header names or values. |
224 | 224 | */ |
@@ -288,7 +288,7 @@ discard block |
||
288 | 288 | |
289 | 289 | /** |
290 | 290 | * Specifies message body. |
291 | - * @param StreamInterface|\Closure|array $body stream instance or its DI compatible configuration. |
|
291 | + * @param StreamInterface|null $body stream instance or its DI compatible configuration. |
|
292 | 292 | */ |
293 | 293 | public function setBody($body) |
294 | 294 | { |
@@ -269,7 +269,7 @@ discard block |
||
269 | 269 | |
270 | 270 | /** |
271 | 271 | * Specifies query string. |
272 | - * @param string|array|object $query the query string or array of query parameters. |
|
272 | + * @param string $query the query string or array of query parameters. |
|
273 | 273 | */ |
274 | 274 | public function setQuery($query) |
275 | 275 | { |
@@ -407,7 +407,7 @@ discard block |
||
407 | 407 | |
408 | 408 | /** |
409 | 409 | * @param string $name URI component name. |
410 | - * @param mixed $default default value, which should be returned in case component is not exist. |
|
410 | + * @param string $default default value, which should be returned in case component is not exist. |
|
411 | 411 | * @return mixed URI component value. |
412 | 412 | */ |
413 | 413 | protected function getComponent($name, $default = null) |
@@ -346,7 +346,7 @@ discard block |
||
346 | 346 | |
347 | 347 | /** |
348 | 348 | * Specifies the URI instance. |
349 | - * @param UriInterface|\Closure|array $uri URI instance or its DI compatible configuration. |
|
349 | + * @param UriInterface $uri URI instance or its DI compatible configuration. |
|
350 | 350 | * @since 2.1.0 |
351 | 351 | */ |
352 | 352 | public function setUri($uri) |
@@ -575,7 +575,7 @@ discard block |
||
575 | 575 | * If the parameter does not exist, the second parameter passed to this method will be returned. |
576 | 576 | * @param string $name the parameter name |
577 | 577 | * @param mixed $defaultValue the default parameter value if the parameter does not exist. |
578 | - * @return mixed the parameter value |
|
578 | + * @return string the parameter value |
|
579 | 579 | * @see getBodyParams() |
580 | 580 | * @see setBodyParams() |
581 | 581 | */ |
@@ -16,7 +16,6 @@ |
||
16 | 16 | use yii\helpers\StringHelper; |
17 | 17 | use yii\helpers\Url; |
18 | 18 | use yii\http\CookieCollection; |
19 | -use yii\http\HeaderCollection; |
|
20 | 19 | use yii\http\MemoryStream; |
21 | 20 | use yii\http\MessageTrait; |
22 | 21 | use yii\http\ResourceStream; |