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: 61d95b - released at 2026-03-15 00:56