=============================== Rule ``heredoc_closing_marker`` =============================== Unify ``heredoc`` or ``nowdoc`` closing marker. Configuration ------------- ``closing_marker`` ~~~~~~~~~~~~~~~~~~ Preferred closing marker. Allowed types: ``string`` Default value: ``'EOD'`` ``explicit_heredoc_style`` ~~~~~~~~~~~~~~~~~~~~~~~~~~ Whether the closing marker should be wrapped in double quotes. Allowed types: ``bool`` Default value: ``false`` ``reserved_closing_markers`` ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Reserved closing markers to be kept unchanged. Allowed types: ``list`` Default value: ``['CSS', 'DIFF', 'HTML', 'JS', 'JSON', 'MD', 'PHP', 'PYTHON', 'RST', 'TS', 'SQL', 'XML', 'YAML']`` Examples -------- Example #1 ~~~~~~~~~~ *Default* configuration. .. code-block:: diff --- Original +++ New - 'EOF']``. .. code-block:: diff --- Original +++ New - true]``. .. code-block:: diff --- Original +++ New -`_ - Test class: `PhpCsFixer\\Tests\\Fixer\\StringNotation\\HeredocClosingMarkerFixerTest <./../../../tests/Fixer/StringNotation/HeredocClosingMarkerFixerTest.php>`_ The test class defines officially supported behaviour. Each test case is a part of our backward compatibility promise.