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

 <?php
 
 final class DemoFile
         $this->doStuff(unserialize($param));
     }
 
+    /**
+     * @param mixed $value
+     */
     private function doStuff(array $value)
     {
         // do stuff with value
     }
 }
PHP snippet to change

Applied Rules:

Not a change you expect?

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