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

 {
     public function run(bool $param)
     {
-        return ord('0');
+        return ord('0'[0]);
     }
 }
PHP snippet to change

Applied Rules:

Not a change you expect?

Config  rector.php
Rector version: 007114 - released at 2026-03-12 18:24