`TernaryToNullCoalescingFixer` - support `isset` in parentheses
Author: vrublegCreated Oct 15, 2025Updated Aug 24, 2026
Labelsstatus/to verifykind/feature requestcontribution welcome
Feature request
It would be great if ternary_to_null_coalescing rule treated this:
(isset($test)) ? $test : ''the same way as this:
isset($test) ? $test : ''and turn both samples into this:
$test ?? ''Currently, the first variant stays untouched.
Contribution Checks
- I have verified if this feature request was already discussed
- I am familiar with "Feature or bug?"
Source: PHP-CS-Fixer/PHP-CS-Fixer