@@ -359,7 +359,7 @@ discard block |
||
359 | 359 | |
360 | 360 | /** |
361 | 361 | * Specifies the URI instance. |
362 | - * @param UriInterface|\Closure|array $uri URI instance or its DI compatible configuration. |
|
362 | + * @param UriInterface $uri URI instance or its DI compatible configuration. |
|
363 | 363 | * @since 2.1.0 |
364 | 364 | */ |
365 | 365 | public function setUri($uri) |
@@ -592,7 +592,7 @@ discard block |
||
592 | 592 | * If the parameter does not exist, the second parameter passed to this method will be returned. |
593 | 593 | * @param string $name the parameter name |
594 | 594 | * @param mixed $defaultValue the default parameter value if the parameter does not exist. |
595 | - * @return mixed the parameter value |
|
595 | + * @return string the parameter value |
|
596 | 596 | * @see getBodyParams() |
597 | 597 | * @see setBodyParams() |
598 | 598 | */ |
@@ -1573,7 +1573,7 @@ discard block |
||
1573 | 1573 | * Returns an uploaded file according to the given name. |
1574 | 1574 | * Name can be either a string HTML form input name, e.g. 'Item[file]' or array path, e.g. `['Item', 'file']`. |
1575 | 1575 | * Note: this method returns `null` in case given name matches multiple files. |
1576 | - * @param string|array $name HTML form input name or array path. |
|
1576 | + * @param string $name HTML form input name or array path. |
|
1577 | 1577 | * @return UploadedFileInterface|null uploaded file instance, `null` - if not found. |
1578 | 1578 | * @since 2.1.0 |
1579 | 1579 | */ |
@@ -1591,7 +1591,7 @@ discard block |
||
1591 | 1591 | * Name can be either a string HTML form input name, e.g. 'Item[file]' or array path, e.g. `['Item', 'file']`. |
1592 | 1592 | * Note: this method does NOT preserve uploaded files structure - it returns instances in single-level array (list), |
1593 | 1593 | * even if they are set by nested keys. |
1594 | - * @param string|array $name HTML form input name or array path. |
|
1594 | + * @param string $name HTML form input name or array path. |
|
1595 | 1595 | * @return UploadedFileInterface[] list of uploaded file instances. |
1596 | 1596 | * @since 2.1.0 |
1597 | 1597 | */ |
@@ -212,7 +212,7 @@ |
||
212 | 212 | /** |
213 | 213 | * Parses content part headers. |
214 | 214 | * @param string $headerContent headers source content |
215 | - * @return array parsed headers. |
|
215 | + * @return callable parsed headers. |
|
216 | 216 | */ |
217 | 217 | private function parseHeaders($headerContent) |
218 | 218 | { |