Skip to content

Commit

Permalink
[5.4] Set data key when testing file uploads in nested array (#18954)
Browse files Browse the repository at this point in the history
* Remove data key when testing file uploads in nested array

* fix style

* Replace value instead of unset
  • Loading branch information
RDelorier authored and taylorotwell committed Apr 28, 2017
1 parent 9a6867e commit a102a9f
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -307,6 +307,8 @@ protected function extractFilesFromDataArray(&$data)

if (is_array($value)) {
$files[$key] = $this->extractFilesFromDataArray($value);

$data[$key] = $value;
}
}

Expand Down

0 comments on commit a102a9f

Please sign in to comment.