=================== Rule ``array_push`` =================== Converts simple usages of ``array_push($x, $y);`` to ``$x[] = $y;``. Warning ------- Using this rule is risky ~~~~~~~~~~~~~~~~~~~~~~~~ Risky when the function ``array_push`` is overridden. Examples -------- Example #1 ~~~~~~~~~~ .. code-block:: diff --- Original +++ New `_ - `@Symfony:risky <./../../ruleSets/SymfonyRisky.rst>`_