========================= Rule ``modernize_strpos`` ========================= Replace ``strpos()`` calls with ``str_starts_with()`` or ``str_contains()`` if possible. Warning ------- Using this rule is risky ~~~~~~~~~~~~~~~~~~~~~~~~ Risky if ``strpos``, ``str_starts_with`` or ``str_contains`` functions are overridden. Examples -------- Example #1 ~~~~~~~~~~ .. code-block:: diff --- Original +++ New `_ - `@Symfony:risky <./../../ruleSets/SymfonyRisky.rst>`_