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

 <?php
 
-$fn = function (...$args) {
-    return array_sum($args);
-};
+$fn = array_sum(...);
 
 $fn(1, 2, 3);
PHP snippet to change

Applied Rules:

Not a change you expect?

Config  rector.php
Rector version: b855ff - released at 2026-01-22 19:37