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

 <?php
 
 final class DemoFile
         $this->exec($_SERVER['argv'] ?? []);
     }
 
+    /**
+     * @param mixed|mixed[] $argv
+     */
     private function exec(array $argv): bool
     {
     }
 }
PHP snippet to change

Applied Rules:

Not a change you expect?

Config  rector.php
Rector version: 9d02f9 - released at 2026-01-29 17:51