PHP70MigrationRisky.rst 879 B

12345678910111213141516171819202122232425
  1. ==================================
  2. Rule set ``@PHP70Migration:risky``
  3. ==================================
  4. Rules to improve code for PHP 7.0 compatibility.
  5. Warning
  6. -------
  7. This set contains rules that are risky
  8. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  9. Using this rule set may lead to changes in your code's logic and behaviour. Use it with caution and review changes before incorporating them into your code base.
  10. Rules
  11. -----
  12. - `@PHP56Migration:risky <./PHP56MigrationRisky.rst>`_
  13. - `combine_nested_dirname <./../rules/function_notation/combine_nested_dirname.rst>`_
  14. - `declare_strict_types <./../rules/strict/declare_strict_types.rst>`_
  15. - `non_printable_character <./../rules/basic/non_printable_character.rst>`_
  16. - `random_api_migration <./../rules/alias/random_api_migration.rst>`_ with config:
  17. ``['replacements' => ['mt_rand' => 'random_int', 'rand' => 'random_int']]``