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

 <?php
 
-$foo = isset($bar) ? $bar : ($baz && $qux);
+$foo = $bar ?? $baz && $qux;
PHP snippet to change

Applied Rules:

Not a change you expect?

Config  rector.php
Rector version: 036cfd - released at 2026-02-24 16:36