Loading
Issue #3613847: Fix phpstan: remove unnecessary ?? NULL coalesce operators
Removes the ?? NULL operators that phpstan reports as nullCoalesce.unnecessary: the left operand can never be undefined, so the coalesce is dead code. No behavior change.
domain/src/Form/DomainForm.php:114domain/src/Hook/DomainThemeHooks.php:50domain_config_ui/tests/src/Kernel/DomainConfigEditContextTest.php:169
The flagged expressions were read from the job output and confirmed with a local phpstan run per branch, rather than assumed: the set differs from branch to branch, and the module has other ?? NULL occurrences that guard possibly undefined array offsets and are correctly NOT flagged. After the change, a local run of the whole module reports no nullCoalesce.unnecessary and no new errors on this branch.