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

 
     public function execute()
     {
-        return $this->run([$this, 'some']);
+        return $this->run($this->some(...));
     }
     
     public function some()
     {}
 }
PHP snippet to change

Applied Rules:

Not a change you expect?

Config  rector.php
Rector version: cb73a3 - released at 2026-01-18 16:49