Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit ef7ff67

Browse filesBrowse files
committed
bug #31524 [HttpFoundation] prevent deprecation when filesize matches error code (xabbuh)
This PR was merged into the 4.2 branch. Discussion ---------- [HttpFoundation] prevent deprecation when filesize matches error code | Q | A | ------------- | --- | Branch? | 4.2 | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | #31515 | License | MIT | Doc PR | Commits ------- d836c63 prevent deprecation when filesize matches error code
2 parents 1620baf + d836c63 commit ef7ff67
Copy full SHA for ef7ff67

File tree

1 file changed

+1
-1
lines changed
Filter options

1 file changed

+1
-1
lines changed

‎src/Symfony/Component/HttpFoundation/FileBag.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/HttpFoundation/FileBag.php
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ protected function convertFileInformation($file)
8484
if (UPLOAD_ERR_NO_FILE == $file['error']) {
8585
$file = null;
8686
} else {
87-
$file = new UploadedFile($file['tmp_name'], $file['name'], $file['type'], $file['error']);
87+
$file = new UploadedFile($file['tmp_name'], $file['name'], $file['type'], $file['error'], false);
8888
}
8989
} else {
9090
$file = array_map([$this, 'convertFileInformation'], $file);

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.