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

 }
 
 (new SkipCallableParamAssignFluentMultiParams())
-    ->withTransform(fn (string $datum): string => trim($datum))
+    ->withTransform(trim(...))
     ->run('  some data  ');
PHP snippet to change

Applied Rules:

Not a change you expect?

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