PhpCsFixerRisky.rst 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. ==============================
  2. Rule set ``@PhpCsFixer:risky``
  3. ==============================
  4. Rule set as used by the PHP-CS-Fixer development team, highly opinionated.
  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. - `@PER-CS:risky <./PER-CSRisky.rst>`_
  13. - `@Symfony:risky <./SymfonyRisky.rst>`_
  14. - `comment_to_phpdoc <./../rules/comment/comment_to_phpdoc.rst>`_
  15. - `final_internal_class <./../rules/class_notation/final_internal_class.rst>`_
  16. - `native_constant_invocation <./../rules/constant_notation/native_constant_invocation.rst>`_ with config:
  17. ``['fix_built_in' => false, 'include' => ['DIRECTORY_SEPARATOR', 'PHP_INT_SIZE', 'PHP_SAPI', 'PHP_VERSION_ID'], 'scope' => 'namespaced', 'strict' => true]``
  18. - `no_alias_functions <./../rules/alias/no_alias_functions.rst>`_ with config:
  19. ``['sets' => ['@all']]``
  20. - `no_unset_on_property <./../rules/language_construct/no_unset_on_property.rst>`_
  21. - `php_unit_data_provider_name <./../rules/php_unit/php_unit_data_provider_name.rst>`_
  22. - `php_unit_data_provider_return_type <./../rules/php_unit/php_unit_data_provider_return_type.rst>`_
  23. - `php_unit_data_provider_static <./../rules/php_unit/php_unit_data_provider_static.rst>`_ with config:
  24. ``['force' => true]``
  25. - `php_unit_strict <./../rules/php_unit/php_unit_strict.rst>`_
  26. - `php_unit_test_case_static_method_calls <./../rules/php_unit/php_unit_test_case_static_method_calls.rst>`_ with config:
  27. ``['call_type' => 'self']``
  28. - `static_lambda <./../rules/function_notation/static_lambda.rst>`_
  29. - `strict_comparison <./../rules/strict/strict_comparison.rst>`_
  30. - `strict_param <./../rules/strict/strict_param.rst>`_
  31. - `yield_from_array_to_yields <./../rules/array_notation/yield_from_array_to_yields.rst>`_
  32. Disabled rules
  33. --------------
  34. - `get_class_to_class_keyword <./../rules/language_construct/get_class_to_class_keyword.rst>`_
  35. - `modernize_strpos <./../rules/alias/modernize_strpos.rst>`_