8000 Modify processing of uploaded files to be compatible with PHP 8.1 by p-golovin · Pull Request #46149 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content

Modify processing of uploaded files to be compatible with PHP 8.1 #46149

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 23, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Modify processing of uploaded files to be compatible with PHP 8.1
Remove full_path from keys before check
Keep logic the same as in src/Symfony/Component/HttpFoundation/FileBag.php
  • Loading branch information
p-golovin authored and Pavel Golovin committed Apr 22, 2022
commit a5cc1e1fd8a40eee3b18d9b0c2d01ed95a5db795
2 changes: 2 additions & 0 deletions src/Symfony/Component/Form/NativeRequestHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,8 @@ private static function fixPhpFilesArray($data)
return $data;
}

// Remove extra key added by PHP 8.1.
unset($data['full_path']);
$keys = array_keys($data);
sort($keys);

Expand Down
0