Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 1314365

Browse files
minor #18404 [HttpFoundation] fix phpdoc of UploadedFile (Tobion)
This PR was merged into the 2.3 branch. Discussion ---------- [HttpFoundation] fix phpdoc of UploadedFile | Q | A | ------------- | --- | Branch? | 2.3 | Bug fix? | no | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | | License | MIT | Doc PR | Commits ------- cbcac56 [HttpFoundation] fix phpdoc of UploadedFile
2 parents 2ce5d54 + cbcac56 commit 1314365

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/Symfony/Component/HttpFoundation/File/UploadedFile.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ class UploadedFile extends File
5050
/**
5151
* The file size provided by the uploader.
5252
*
53-
* @var string
53+
* @var int|null
5454
*/
5555
private $size;
5656

@@ -75,12 +75,12 @@ class UploadedFile extends File
7575
*
7676
* Calling any other method on an non-valid instance will cause an unpredictable result.
7777
*
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
8484
*
8585
* @throws FileException If file_uploads is disabled
8686
* @throws FileNotFoundException If the file does not exist

0 commit comments

Comments
 (0)