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

 
     public function run()
     {
-        fn() => $this->executesCallback(fn() => $this->doNohing('a'));
+        fn(): mixed => $this->executesCallback(fn() => $this->doNohing('a'));
     }
 
     /**
PHP snippet to change

Applied Rules:

Not a change you expect?

Config  rector.php
Rector version: aeab56 - released at 2025-09-08 02:29