=================================== Rule ``ternary_to_null_coalescing`` =================================== Use ``null`` coalescing operator ``??`` where possible. Requires PHP >= 7.0. Examples -------- Example #1 ~~~~~~~~~~ .. code-block:: diff --- Original +++ New `_ rule set will enable the ``ternary_to_null_coalescing`` rule. @PHP71Migration Using the `@PHP71Migration <./../../ruleSets/PHP71Migration.rst>`_ rule set will enable the ``ternary_to_null_coalescing`` rule. @PHP73Migration Using the `@PHP73Migration <./../../ruleSets/PHP73Migration.rst>`_ rule set will enable the ``ternary_to_null_coalescing`` rule. @PHP74Migration Using the `@PHP74Migration <./../../ruleSets/PHP74Migration.rst>`_ rule set will enable the ``ternary_to_null_coalescing`` rule. @PHP80Migration Using the `@PHP80Migration <./../../ruleSets/PHP80Migration.rst>`_ rule set will enable the ``ternary_to_null_coalescing`` rule. @PHP81Migration Using the `@PHP81Migration <./../../ruleSets/PHP81Migration.rst>`_ rule set will enable the ``ternary_to_null_coalescing`` rule. @PHP82Migration Using the `@PHP82Migration <./../../ruleSets/PHP82Migration.rst>`_ rule set will enable the ``ternary_to_null_coalescing`` rule.