10000 test · symfony/symfony@d545dcb · GitHub
[go: up one dir, main page]

Skip to content

Commit d545dcb

Browse files
authored
test
1 parent b968e82 commit d545dcb

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/Symfony/Component/HttpFoundation/FileBag.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,10 @@ protected function convertFileInformation($file)
8787
$file = new UploadedFile($file['tmp_name'], $file['name'], $file['type'], $file['size'], $file['error']);
8888
}
8989
} else {
90-
$file = array_filter(array_map(array($this, 'convertFileInformation'), $file));
90+
$file = array_map(array($this, 'convertFileInformation'), $file);
91+
if ($file === [null]) {
92+
$file = [];
93+
}
9194
}
9295
}
9396

0 commit comments

Comments
 (0)
0