File tree 1 file changed +7
-7
lines changed
src/Symfony/Component/HttpFoundation/File
1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -50,7 +50,7 @@ class UploadedFile extends File
50
50
/**
51
51
* The file size provided by the uploader.
52
52
*
53
- * @var string
53
+ * @var int|null
54
54
*/
55
55
private $ size ;
56
56
@@ -75,12 +75,12 @@ class UploadedFile extends File
75
75
*
76
76
* Calling any other method on an non-valid instance will cause an unpredictable result.
77
77
*
78
- * @param string $path The full temporary path to the file
79
- * @param string $originalName The original file name
80
- * @param string $mimeType The type of the file as provided by PHP
81
- * @param int $size The file size
82
- * @param int $error The error constant of the upload (one of PHP's UPLOAD_ERR_XXX constants)
83
- * @param bool $test Whether the test mode is active
78
+ * @param string $path The full temporary path to the file
79
+ * @param string $originalName The original file name
80
+ * @param string|null $mimeType The type of the file as provided by PHP; null defaults to application/octet-stream
81
+ * @param int|null $size The file size
82
+ * @param int|null $error The error constant of the upload (one of PHP's UPLOAD_ERR_XXX constants); null defaults to UPLOAD_ERR_OK
83
+ * @param bool $test Whether the test mode is active
84
84
*
85
85
* @throws FileException If file_uploads is disabled
86
86
* @throws FileNotFoundException If the file does not exist
You can’t perform that action at this time.
0 commit comments