@@ -277,7 +277,7 @@ discard block |
||
277 | 277 | /** |
278 | 278 | * Set the MIME type. |
279 | 279 | * |
280 | - * @param mixed $type The file MIME type. |
|
280 | + * @param string $type The file MIME type. |
|
281 | 281 | * @throws InvalidArgumentException If the MIME type argument is not a string. |
282 | 282 | * @return FileProperty Chainable |
283 | 283 | */ |
@@ -303,7 +303,7 @@ discard block |
||
303 | 303 | * |
304 | 304 | * @todo Refactor to support multilingual/multiple files. |
305 | 305 | * |
306 | - * @return integer Returns the MIME type for the first value. |
|
306 | + * @return null|string Returns the MIME type for the first value. |
|
307 | 307 | */ |
308 | 308 | public function getMimetype() |
309 | 309 | { |
@@ -329,7 +329,7 @@ discard block |
||
329 | 329 | * Extract the MIME type from the given file. |
330 | 330 | * |
331 | 331 | * @param string $file The file to check. |
332 | - * @return integer|null Returns the file's MIME type, |
|
332 | + * @return null|string Returns the file's MIME type, |
|
333 | 333 | * or NULL in case of an error or the file is missing. |
334 | 334 | */ |
335 | 335 | public function getMimetypeFor($file) |
@@ -501,7 +501,7 @@ discard block |
||
501 | 501 | } |
502 | 502 | |
503 | 503 | /** |
504 | - * @return array |
|
504 | + * @return string[] |
|
505 | 505 | */ |
506 | 506 | public function validationMethods() |
507 | 507 | { |
@@ -1148,7 +1148,7 @@ discard block |
||
1148 | 1148 | /** |
1149 | 1149 | * Generate a unique filename. |
1150 | 1150 | * |
1151 | - * @param string|array $filename The filename to alter. |
|
1151 | + * @param string $filename The filename to alter. |
|
1152 | 1152 | * @throws InvalidArgumentException If the given filename is invalid. |
1153 | 1153 | * @return string |
1154 | 1154 | */ |
@@ -1599,7 +1599,7 @@ discard block |
||
1599 | 1599 | * |
1600 | 1600 | * @param array $uploadedFiles The non-normalized tree of uploaded file data. |
1601 | 1601 | * @param callable $filterCallback If specified, the callback function to used to filter files. |
1602 | - * @param mixed $searchKey If specified, then only top-level keys containing these values are returned. |
|
1602 | + * @param string $searchKey If specified, then only top-level keys containing these values are returned. |
|
1603 | 1603 | * @return array A tree of normalized $_FILE entries. |
1604 | 1604 | */ |
1605 | 1605 | public static function parseUploadedFiles(array $uploadedFiles, callable $filterCallback = null, $searchKey = null) |