PhpCsFixerRisky.rst 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. ==============================
  2. Rule set ``@PhpCsFixer:risky``
  3. ==============================
  4. Rule set as used by the PHP-CS-Fixer development team, highly opinionated. This set contains rules that are risky.
  5. Rules
  6. -----
  7. - `@PER-CS2.0:risky <./PER-CS2.0Risky.rst>`_
  8. - `@Symfony:risky <./SymfonyRisky.rst>`_
  9. - `comment_to_phpdoc <./../rules/comment/comment_to_phpdoc.rst>`_
  10. - `final_internal_class <./../rules/class_notation/final_internal_class.rst>`_
  11. - `native_constant_invocation <./../rules/constant_notation/native_constant_invocation.rst>`_ with config:
  12. ``['fix_built_in' => false, 'include' => ['DIRECTORY_SEPARATOR', 'PHP_INT_SIZE', 'PHP_SAPI', 'PHP_VERSION_ID'], 'scope' => 'namespaced', 'strict' => true]``
  13. - `no_alias_functions <./../rules/alias/no_alias_functions.rst>`_ with config:
  14. ``['sets' => ['@all']]``
  15. - `no_unreachable_default_argument_value <./../rules/function_notation/no_unreachable_default_argument_value.rst>`_
  16. - `no_unset_on_property <./../rules/language_construct/no_unset_on_property.rst>`_
  17. - `php_unit_data_provider_name <./../rules/php_unit/php_unit_data_provider_name.rst>`_
  18. - `php_unit_data_provider_return_type <./../rules/php_unit/php_unit_data_provider_return_type.rst>`_
  19. - `php_unit_strict <./../rules/php_unit/php_unit_strict.rst>`_
  20. - `php_unit_test_case_static_method_calls <./../rules/php_unit/php_unit_test_case_static_method_calls.rst>`_ with config:
  21. ``['call_type' => 'self']``
  22. - `static_lambda <./../rules/function_notation/static_lambda.rst>`_
  23. - `strict_comparison <./../rules/strict/strict_comparison.rst>`_
  24. - `strict_param <./../rules/strict/strict_param.rst>`_
  25. - `yield_from_array_to_yields <./../rules/array_notation/yield_from_array_to_yields.rst>`_
  26. Disabled rules
  27. --------------
  28. - `get_class_to_class_keyword <./../rules/language_construct/get_class_to_class_keyword.rst>`_
  29. - `modernize_strpos <./../rules/alias/modernize_strpos.rst>`_