@@ -28,7 +28,7 @@ |
||
| 28 | 28 | * @param StreamInterface $stream Stream to wrap |
| 29 | 29 | * @param int $limit Total number of bytes to allow to be read |
| 30 | 30 | * from the stream. Pass -1 for no limit. |
| 31 | - * @param int|null $offset Position to seek to before reading (only |
|
| 31 | + * @param integer $offset Position to seek to before reading (only |
|
| 32 | 32 | * works on seekable streams). |
| 33 | 33 | */ |
| 34 | 34 | public function __construct( |
@@ -142,6 +142,9 @@ |
||
| 142 | 142 | return [$stream, $headers]; |
| 143 | 143 | } |
| 144 | 144 | |
| 145 | + /** |
|
| 146 | + * @param string $key |
|
| 147 | + */ |
|
| 145 | 148 | private function getHeader(array $headers, $key) |
| 146 | 149 | { |
| 147 | 150 | $lowercaseHeader = strtolower($key); |
@@ -156,6 +156,9 @@ |
||
| 156 | 156 | return isset($this->metadata[$key]) ? $this->metadata[$key] : null; |
| 157 | 157 | } |
| 158 | 158 | |
| 159 | + /** |
|
| 160 | + * @param integer $length |
|
| 161 | + */ |
|
| 159 | 162 | private function pump($length) |
| 160 | 163 | { |
| 161 | 164 | if ($this->source) { |
@@ -48,9 +48,8 @@ |
||
| 48 | 48 | |
| 49 | 49 | /** |
| 50 | 50 | * @param array $serverParams the value of $_SERVER superglobal. |
| 51 | - * @param array $uploadedFiles the value of $_FILES superglobal. |
|
| 52 | 51 | * @param string $method HTTP method for the request. |
| 53 | - * @param string|UriInterface $uri URI for the request. |
|
| 52 | + * @param UriInterface $uri URI for the request. |
|
| 54 | 53 | * @param array $headers Headers for the message. |
| 55 | 54 | * @param string|resource|StreamInterface $body Message body. |
| 56 | 55 | * @param string $protocolVersion HTTP protocol version. |
@@ -127,6 +127,9 @@ |
||
| 127 | 127 | $this->seek(0); |
| 128 | 128 | } |
| 129 | 129 | |
| 130 | + /** |
|
| 131 | + * @param integer $offset |
|
| 132 | + */ |
|
| 130 | 133 | public function seek($offset, $whence = SEEK_SET) |
| 131 | 134 | { |
| 132 | 135 | $this->stream->seek($offset, $whence); |
@@ -143,7 +143,7 @@ discard block |
||
| 143 | 143 | } |
| 144 | 144 | |
| 145 | 145 | /** |
| 146 | - * @param mixed $param |
|
| 146 | + * @param string|null $param |
|
| 147 | 147 | * @return boolean |
| 148 | 148 | */ |
| 149 | 149 | private function isStringOrNull($param) |
@@ -152,7 +152,7 @@ discard block |
||
| 152 | 152 | } |
| 153 | 153 | |
| 154 | 154 | /** |
| 155 | - * @param mixed $param |
|
| 155 | + * @param string $param |
|
| 156 | 156 | * @return boolean |
| 157 | 157 | */ |
| 158 | 158 | private function isStringNotEmpty($param) |
@@ -281,7 +281,7 @@ discard block |
||
| 281 | 281 | /** |
| 282 | 282 | * {@inheritdoc} |
| 283 | 283 | * |
| 284 | - * @return int|null The file size in bytes or null if unknown. |
|
| 284 | + * @return integer The file size in bytes or null if unknown. |
|
| 285 | 285 | */ |
| 286 | 286 | public function getSize() |
| 287 | 287 | { |
@@ -302,7 +302,7 @@ discard block |
||
| 302 | 302 | /** |
| 303 | 303 | * {@inheritdoc} |
| 304 | 304 | * |
| 305 | - * @return string|null The filename sent by the client or null if none |
|
| 305 | + * @return string The filename sent by the client or null if none |
|
| 306 | 306 | * was provided. |
| 307 | 307 | */ |
| 308 | 308 | public function getClientFilename() |