Run Rector on your code to see what it can do for you:
$name = 'tom'; } - return $name ?? 'tom'; + return $name ?: 'tom'; } }
Applied Rules:
Not a change you expect?
rector.php