|
7 | 7 | ->setRiskyAllowed(true) |
8 | 8 | ->setRules([ |
9 | 9 | '@PHP71Migration' => true, |
10 | | - '@PHP73Migration' => false, |
| 10 | + '@PHP71Migration:risky' => true, |
| 11 | + '@PHP73Migration' => true, |
| 12 | + '@PHP74Migration' => true, |
| 13 | + '@PHP74Migration:risky' => true, |
| 14 | + '@PHP80Migration' => false, |
| 15 | + '@PHP80Migration:risky' => true, |
| 16 | + '@PHP81Migration' => false, |
11 | 17 | '@PhpCsFixer' => true, |
12 | 18 | '@PhpCsFixer:risky' => true, |
13 | 19 | '@PSR12' => true, |
|
22 | 28 | 'comment_to_phpdoc' => true, |
23 | 29 | 'compact_nullable_typehint' => true, |
24 | 30 | 'concat_space' => ['spacing' => 'one'], |
| 31 | + 'echo_tag_syntax' => ['format' => 'short'], |
25 | 32 | 'escape_implicit_backslashes' => false, |
26 | 33 | 'fully_qualified_strict_types' => true, |
| 34 | + 'heredoc_indentation' => false, // disabling this makes test cases more readable |
27 | 35 | 'linebreak_after_opening_tag' => true, |
28 | 36 | 'list_syntax' => ['syntax' => 'short'], |
29 | | - 'method_argument_space' => ['ensure_fully_multiline' => true], |
30 | | - 'native_constant_invocation' => true, |
31 | | - 'native_function_invocation' => true, |
| 37 | + 'method_argument_space' => ['on_multiline' => 'ensure_fully_multiline'], |
| 38 | + 'multiline_whitespace_before_semicolons' => ['strategy' => 'new_line_for_chained_calls'], |
| 39 | + 'native_constant_invocation' => ['scope' => 'all'], |
| 40 | + 'native_function_invocation' => ['scope' => 'all', 'include' => ['@compiler_optimized']], |
32 | 41 | 'native_function_type_declaration_casing' => true, |
33 | 42 | 'no_alternative_syntax' => true, |
34 | | - 'no_multiline_whitespace_before_semicolons' => true, |
35 | 43 | 'no_null_property_initialization' => true, |
36 | | - 'no_short_echo_tag' => true, |
37 | 44 | 'no_superfluous_elseif' => true, |
38 | 45 | 'no_trailing_whitespace_in_string' => false, // test cases have trailing spaces |
39 | 46 | 'no_unneeded_control_parentheses' => true, |
|
44 | 51 | 'ordered_class_elements' => true, |
45 | 52 | 'ordered_imports' => ['sort_algorithm' => 'alpha', 'imports_order' => ['class', 'const', 'function']], |
46 | 53 | 'ordered_interfaces' => true, |
47 | | - 'php_unit_ordered_covers' => true, |
48 | 54 | 'php_unit_set_up_tear_down_visibility' => true, |
49 | 55 | 'php_unit_strict' => true, |
50 | 56 | 'php_unit_test_class_requires_covers' => true, |
51 | 57 | 'phpdoc_add_missing_param_annotation' => true, |
52 | 58 | 'phpdoc_order' => true, |
| 59 | + 'phpdoc_order_by_value' => ['annotations' => ['covers']], |
53 | 60 | 'phpdoc_to_comment' => false, |
54 | 61 | 'phpdoc_types_order' => true, |
55 | 62 | 'pow_to_exponentiation' => true, |
|
58 | 65 | 'simple_to_complex_string_variable' => true, |
59 | 66 | 'single_line_comment_style' => true, |
60 | 67 | 'single_trait_insert_per_statement' => true, |
| 68 | + 'static_lambda' => true, |
61 | 69 | 'strict_comparison' => false, |
62 | 70 | 'strict_param' => false, |
63 | 71 | 'string_line_ending' => true, |
| 72 | + 'trailing_comma_in_multiline' => ['after_heredoc' => true, 'elements' => ['arrays', 'arguments']], |
64 | 73 | 'yoda_style' => false, |
65 | 74 | ]) |
66 | 75 | ->setFinder( |
|
0 commit comments