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 ');
Applied Rules:
Not a change you expect?
rector.php