Symfony\Component\Form\NativeRequestHandler::fixPhpFilesArray
Fixes a malformed PHP $_FILES array.
PHP has a bug that the format of the $_FILES array differs, depending on whether the uploaded file fields had normal field names or array-like field names ("normal" vs. "parent[child]"). This method fixes the array to look like the "normal" $_FILES array. It's safe to pass an already converted array, in which case this method just returns the original array unmodified. This method is identical to and should be kept as such in order to port fixes quickly and easily.
Signature
private function fixPhpFilesArray(array
$data )
Parameters
$data
— array
Returns
- array