diff --git a/Classes/Service/HttpPush/AbstractHttpPush.php b/Classes/Service/HttpPush/AbstractHttpPush.php index 2f2172f737b..17a980c140b 100644 --- a/Classes/Service/HttpPush/AbstractHttpPush.php +++ b/Classes/Service/HttpPush/AbstractHttpPush.php @@ -56,11 +56,9 @@ protected function streamlineFilePaths(array $paths): array */ protected function mapPathsWithType(array $paths, string $type): array { - return array_values(array_map(function ($item) use ($type) { - return [ - 'path' => $item, - 'type' => $type, - ]; - }, array_unique($paths))); + return array_values(array_map(fn($item) => [ + 'path' => $item, + 'type' => $type, + ], array_unique($paths))); } }