1
0
mirror of synced 2024-11-24 05:26:03 +03:00

Double filtering seems to be overkill

This commit is contained in:
Alex Lushpai 2021-07-09 11:22:37 +03:00 committed by GitHub
commit f919a3a99f
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);
} }
)); );
} }
/** /**