Run Rector on your code to see what it can do for you:
$test = 'Super'; $this->myCallback( - function () use ($test) { - return compact('test'); - } + fn() => compact('test') ); }
Applied Rules:
Not a change you expect?
rector.php