====================== Rule ``phpdoc_scalar`` ====================== Scalar types should always be written in the same form. ``int`` not ``integer``, ``bool`` not ``boolean``, ``float`` not ``real`` or ``double``. Configuration ------------- ``types`` ~~~~~~~~~ A list of types to fix. Allowed values: a subset of ``['boolean', 'callback', 'double', 'integer', 'real', 'str']`` Default value: ``['boolean', 'callback', 'double', 'integer', 'real', 'str']`` Examples -------- Example #1 ~~~~~~~~~~ *Default* configuration. .. code-block:: diff --- Original +++ New ['boolean']]``. .. code-block:: diff --- Original +++ New `_ - `@Symfony <./../../ruleSets/Symfony.rst>`_ References ---------- - Fixer class: `PhpCsFixer\\Fixer\\Phpdoc\\PhpdocScalarFixer <./../../../src/Fixer/Phpdoc/PhpdocScalarFixer.php>`_ - Test class: `PhpCsFixer\\Tests\\Fixer\\Phpdoc\\PhpdocScalarFixerTest <./../../../tests/Fixer/Phpdoc/PhpdocScalarFixerTest.php>`_ The test class defines officially supported behaviour. Each test case is a part of our backward compatibility promise.