Ver código fonte

Update Request.php

walkor 3 anos atrás
pai
commit
6652d4929d
1 arquivos alterados com 4 adições e 0 exclusões
  1. 4 0
      src/Protocols/Http/Request.php

+ 4 - 0
src/Protocols/Http/Request.php

@@ -586,6 +586,10 @@ class Request
         }
         $files_unique = [];
         foreach ($files as $index => $file) {
+            if (!isset($file['key'])) {
+                unset($files[$index]);
+                continue;
+            }
             $key = $file['key'];
             if (\substr($key, -2) === '[]') {
                 $key = $index;