Run Rector on your code to see what it can do for you:

         
         $this->map(
             $array, 
-            fn($item) => var_dump(
-                $item,
+            var_dump(
+                ...,
             )
         );
     }
PHP snippet to change

Applied Rules:

Not a change you expect?

Config  rector.php
Rector version: 3cf1f5 - released at 2025-11-22 15:10