@@ -224,7 +224,7 @@ discard block |
||
224 | 224 | /** |
225 | 225 | * Set the MIME type. |
226 | 226 | * |
227 | - * @param mixed $type The file MIME type. |
|
227 | + * @param null|string $type The file MIME type. |
|
228 | 228 | * @throws InvalidArgumentException If the MIME type argument is not a string. |
229 | 229 | * @return FileProperty Chainable |
230 | 230 | */ |
@@ -299,7 +299,7 @@ discard block |
||
299 | 299 | * Alias of {@see self::getMimetypeFor()}. |
300 | 300 | * |
301 | 301 | * @param string $file The file to check. |
302 | - * @return string|false |
|
302 | + * @return null|string |
|
303 | 303 | */ |
304 | 304 | public function mimetypeFor($file) |
305 | 305 | { |
@@ -405,7 +405,7 @@ discard block |
||
405 | 405 | } |
406 | 406 | |
407 | 407 | /** |
408 | - * @return array |
|
408 | + * @return string[] |
|
409 | 409 | */ |
410 | 410 | public function validationMethods() |
411 | 411 | { |
@@ -934,7 +934,7 @@ discard block |
||
934 | 934 | /** |
935 | 935 | * Generate a unique filename. |
936 | 936 | * |
937 | - * @param string|array $filename The filename to alter. |
|
937 | + * @param string $filename The filename to alter. |
|
938 | 938 | * @throws InvalidArgumentException If the given filename is invalid. |
939 | 939 | * @return string |
940 | 940 | */ |
@@ -1214,7 +1214,7 @@ discard block |
||
1214 | 1214 | * |
1215 | 1215 | * @param array $uploadedFiles The non-normalized tree of uploaded file data. |
1216 | 1216 | * @param callable $filterCallback If specified, the callback function to used to filter files. |
1217 | - * @param mixed $searchKey If specified, then only top-level keys containing these values are returned. |
|
1217 | + * @param string $searchKey If specified, then only top-level keys containing these values are returned. |
|
1218 | 1218 | * @return array A tree of normalized $_FILE entries. |
1219 | 1219 | */ |
1220 | 1220 | public static function parseUploadedFiles(array $uploadedFiles, callable $filterCallback = null, $searchKey = null) |