From a102a9fc9e25d8f35eaad711e5954092955a3aa1 Mon Sep 17 00:00:00 2001 From: Richard Delorier Date: Fri, 28 Apr 2017 17:54:14 -0400 Subject: [PATCH] [5.4] Set data key when testing file uploads in nested array (#18954) * Remove data key when testing file uploads in nested array * fix style * Replace value instead of unset --- .../Foundation/Testing/Concerns/MakesHttpRequests.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Illuminate/Foundation/Testing/Concerns/MakesHttpRequests.php b/src/Illuminate/Foundation/Testing/Concerns/MakesHttpRequests.php index 9cf6e2233850..5cd94a399aef 100644 --- a/src/Illuminate/Foundation/Testing/Concerns/MakesHttpRequests.php +++ b/src/Illuminate/Foundation/Testing/Concerns/MakesHttpRequests.php @@ -307,6 +307,8 @@ protected function extractFilesFromDataArray(&$data) if (is_array($value)) { $files[$key] = $this->extractFilesFromDataArray($value); + + $data[$key] = $value; } }