================================== Rule ``numeric_literal_separator`` ================================== Adds separators to numeric literals of any kind. Configuration ------------- ``override_existing`` ~~~~~~~~~~~~~~~~~~~~~ Whether literals already containing underscores should be reformatted. Allowed types: ``bool`` Default value: ``false`` ``strategy`` ~~~~~~~~~~~~ Whether numeric literal should be separated by underscores or not. Allowed values: ``'no_separator'`` and ``'use_separator'`` Default value: ``'use_separator'`` Examples -------- Example #1 ~~~~~~~~~~ *Default* configuration. .. code-block:: diff --- Original +++ New 'no_separator']``. .. code-block:: diff --- Original +++ New 'use_separator']``. .. code-block:: diff --- Original +++ New true]``. .. code-block:: diff --- Original +++ New -`_ - Test class: `PhpCsFixer\\Tests\\Fixer\\Basic\\NumericLiteralSeparatorFixerTest <./../../../tests/Fixer/Basic/NumericLiteralSeparatorFixerTest.php>`_ The test class defines officially supported behaviour. Each test case is a part of our backward compatibility promise.