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

 
 final class DemoFile
 {
-    public function run(bool $param = null)
+    public function run(?bool $param = null)
     {
     }
 }
PHP snippet to change

Applied Rules:

Not a change you expect?

Config  rector.php
Rector version: 0a5ae8 - released at 2026-01-22 00:58