From 9e601738aca15338b78c7bb0de38ed70099866c7 Mon Sep 17 00:00:00 2001 From: AlexBergal <53344575+AlexBergal@users.noreply.github.com> Date: Mon, 21 Jun 2021 21:56:48 +0700 Subject: [PATCH] Double filtering will loose some params --- src/Service/RequestDataFilter.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Service/RequestDataFilter.php b/src/Service/RequestDataFilter.php index 636c50c..ded2cc1 100644 --- a/src/Service/RequestDataFilter.php +++ b/src/Service/RequestDataFilter.php @@ -25,12 +25,12 @@ class RequestDataFilter */ public function filterBinaryFromRequestData(array $params): array { - return array_filter(array_filter( + return array_filter( $params, static function ($item) { return !($item instanceof FileItemInterface); } - )); + ); } /**