@@ -105,6 +105,9 @@ discard block |
||
105 | 105 | } |
106 | 106 | } |
107 | 107 | |
108 | + /** |
|
109 | + * @param UploadedFile $file |
|
110 | + */ |
|
108 | 111 | protected function mergeFilesArray($array, $path, $file) |
109 | 112 | { |
110 | 113 | if (count($path) > 0) { |
@@ -230,7 +233,7 @@ discard block |
||
230 | 233 | * Get part of a resource. |
231 | 234 | * |
232 | 235 | * @param Request $request |
233 | - * @param $boundary |
|
236 | + * @param string $boundary |
|
234 | 237 | * |
235 | 238 | * @throws MultipartProcessorException |
236 | 239 | * |
@@ -288,7 +291,7 @@ discard block |
||
288 | 291 | * |
289 | 292 | * @throws MultipartProcessorException |
290 | 293 | * |
291 | - * @return array |
|
294 | + * @return string[] |
|
292 | 295 | */ |
293 | 296 | protected function getContentTypeAndBoundary($contentType) |
294 | 297 | { |
@@ -313,6 +316,9 @@ discard block |
||
313 | 316 | return [$contentType, $boundary]; |
314 | 317 | } |
315 | 318 | |
319 | + /** |
|
320 | + * @param string $content |
|
321 | + */ |
|
316 | 322 | private function setRequestContent(Request $request, $content) |
317 | 323 | { |
318 | 324 | $p = new \ReflectionProperty(Request::class, 'content'); |
@@ -18,7 +18,7 @@ |
||
18 | 18 | |
19 | 19 | /** |
20 | 20 | * @param array|string[] $headers |
21 | - * @param string|resource $content |
|
21 | + * @param resource $content |
|
22 | 22 | */ |
23 | 23 | public function __construct($content, array $headers = []) |
24 | 24 | { |