File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -178,8 +178,10 @@ private function getFileUploadError(int $errorCode)
178
178
* Returns the maximum size of an uploaded file as configured in php.ini.
179
179
*
180
180
* This method should be kept in sync with Symfony\Component\HttpFoundation\File\UploadedFile::getMaxFilesize().
181
+ *
182
+ * @return int|float The maximum size of an uploaded file in bytes (returns float if size > PHP_INT_MAX)
181
183
*/
182
- private static function getMaxFilesize (): int
184
+ private static function getMaxFilesize ()
183
185
{
184
186
$ iniMax = strtolower (ini_get ('upload_max_filesize ' ));
185
187
@@ -214,8 +216,10 @@ private static function getMaxFilesize(): int
214
216
* (i.e. try "MB", then "kB", then "bytes").
215
217
*
216
218
* This method should be kept in sync with Symfony\Component\Validator\Constraints\FileValidator::factorizeSizes().
219
+ *
220
+ * @param int|float $limit
217
221
*/
218
- private function factorizeSizes (int $ size , int $ limit )
222
+ private function factorizeSizes (int $ size , $ limit )
219
223
{
220
224
$ coef = self ::MIB_BYTES ;
221
225
$ coefFactor = self ::KIB_BYTES ;
You can’t perform that action at this time.
0 commit comments