============================ Rule ``no_php4_constructor`` ============================ Convert PHP4-style constructors to ``__construct``. Warning ------- Using this rule is risky ~~~~~~~~~~~~~~~~~~~~~~~~ Risky when old style constructor being fixed is overridden or overrides parent one. Examples -------- Example #1 ~~~~~~~~~~ .. code-block:: diff --- Original +++ New `_ - `@PhpCsFixer:risky <./../../ruleSets/PhpCsFixerRisky.rst>`_ - `@Symfony:risky <./../../ruleSets/SymfonyRisky.rst>`_