@@ -67,6 +67,10 @@ discard block |
||
| 67 | 67 | ->withUploadedFiles($files); |
| 68 | 68 | } |
| 69 | 69 | |
| 70 | + /** |
|
| 71 | + * @param resource|null $body |
|
| 72 | + * @param string|null $boundary |
|
| 73 | + */ |
|
| 70 | 74 | protected function parseFile($body, $boundary, $partInfo, &$files) |
| 71 | 75 | { |
| 72 | 76 | $tempDir = sys_get_temp_dir(); |
@@ -139,6 +143,10 @@ discard block |
||
| 139 | 143 | ); |
| 140 | 144 | } |
| 141 | 145 | |
| 146 | + /** |
|
| 147 | + * @param resource|null $body |
|
| 148 | + * @param string|null $boundary |
|
| 149 | + */ |
|
| 142 | 150 | protected function parseVariable($body, $boundary, $name, &$variables) |
| 143 | 151 | { |
| 144 | 152 | $fullValue = ''; |
@@ -14,7 +14,6 @@ |
||
| 14 | 14 | use Thruster\Component\Http\Parser\ParserInterface; |
| 15 | 15 | use Thruster\Component\Http\Parser\QueryParamParser; |
| 16 | 16 | use Thruster\Component\Http\Parser\URLEncodedBodyParser; |
| 17 | -use Thruster\Component\Stream\StreamInterface; |
|
| 18 | 17 | |
| 19 | 18 | /** |
| 20 | 19 | * Class RequestParser |
@@ -56,7 +56,6 @@ |
||
| 56 | 56 | * @param array $cookies Cookies for the message, if any. |
| 57 | 57 | * @param array $queryParams Query params for the message, if any. |
| 58 | 58 | * @param array|object $parsedBody The deserialized body parameters, if any. |
| 59 | - * @param string $protocol HTTP protocol version. |
|
| 60 | 59 | * |
| 61 | 60 | * @throws InvalidArgumentException for any invalid value. |
| 62 | 61 | */ |