====================== 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 @@ -1,10 +1,10 @@ ['boolean']]``. .. code-block:: diff --- Original +++ New @@ -1,7 +1,7 @@ `_ rule set will enable the ``phpdoc_scalar`` rule with the default config. @Symfony Using the `@Symfony <./../../ruleSets/Symfony.rst>`_ rule set will enable the ``phpdoc_scalar`` rule with the default config.