1
0
mirror of synced 2024-11-27 23:36:02 +03:00

Double filtering will loose some params

This commit is contained in:
AlexBergal 2021-06-21 21:56:48 +07:00 committed by GitHub
parent bd81c1d8fc
commit 9e601738ac
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -25,12 +25,12 @@ class RequestDataFilter
*/ */
public function filterBinaryFromRequestData(array $params): array public function filterBinaryFromRequestData(array $params): array
{ {
return array_filter(array_filter( return array_filter(
$params, $params,
static function ($item) { static function ($item) {
return !($item instanceof FileItemInterface); return !($item instanceof FileItemInterface);
} }
)); );
} }
/** /**