|
21 | 21 | 'header' => $header, |
22 | 22 | 'comment_type' => 'PHPDoc', |
23 | 23 | 'location' => 'after_open', |
24 | | - 'separate' => 'bottom' |
| 24 | + 'separate' => 'bottom', |
25 | 25 | ], |
26 | | - '@PHP74Migration' => true, |
27 | | - '@PHP74Migration:risky' => true, |
28 | | - '@Symfony' => true, |
29 | | - '@Symfony:risky' => true, |
30 | | - 'concat_space' => [ |
31 | | - 'spacing' => 'one', |
32 | | - ], |
33 | | - 'array_indentation' => true, |
| 26 | + |
| 27 | + // Migration Rules |
| 28 | + '@PHP8x1Migration' => true, |
| 29 | + '@PHP8x1Migration:risky' => true, |
| 30 | + '@PHPUnit10x0Migration:risky' => true, |
| 31 | + |
| 32 | + // Doctrine Rules |
| 33 | + '@DoctrineAnnotation' => true, |
| 34 | + |
| 35 | + // In no presets |
| 36 | + 'attribute_empty_parentheses' => true, |
| 37 | + 'heredoc_closing_marker' => true, |
| 38 | + 'multiline_string_to_heredoc' => true, |
| 39 | + 'numeric_literal_separator' => true, |
| 40 | + 'ordered_attributes' => true, |
| 41 | + 'php_unit_attributes' => true, |
| 42 | + 'return_to_yield_from' => true, |
| 43 | + 'phpdoc_tag_casing' => true, |
| 44 | + 'phpdoc_param_order' => true, |
| 45 | + 'mb_str_functions' => true, |
| 46 | + 'date_time_immutable' => true, |
| 47 | + 'ordered_interfaces' => true, |
34 | 48 | 'general_phpdoc_annotation_remove' => [ |
35 | | - 'annotations' => [ |
36 | | - 'expectedDeprecation' |
37 | | - ] |
| 49 | + 'annotations' => ['expectedDeprecation'], |
38 | 50 | ], |
39 | | - 'use_arrow_functions' => true, |
40 | | - 'control_structure_braces' => true, |
41 | | - 'control_structure_continuation_position' => true, |
42 | | - 'self_static_accessor' => true, |
43 | | - 'ordered_interfaces' => true, |
44 | | - 'phpdoc_var_annotation_correct_order' => true, |
45 | | - 'return_assignment' => true, |
46 | | - 'no_useless_else' => true, |
47 | | - 'no_superfluous_elseif' => true, |
48 | | - 'no_useless_return' => true, |
49 | | - 'multiline_comment_opening_closing' => true, |
50 | | - 'no_null_property_initialization' => true, |
51 | | - 'operator_linebreak' => true, |
52 | | - 'method_chaining_indentation' => true, |
53 | | - 'strict_param' => true, |
54 | | - 'strict_comparison' => true, |
| 51 | + 'phpdoc_array_type' => true, |
| 52 | + 'phpdoc_list_type' => true, |
| 53 | + 'general_attribute_remove' => true, |
| 54 | + 'multiline_promoted_properties' => true, |
| 55 | + 'new_expression_parentheses' => true, |
| 56 | + 'no_useless_printf' => true, |
| 57 | + |
| 58 | + // PER-CS3.0 Rules |
| 59 | + '@PER-CS3x0:risky' => true, |
| 60 | + |
| 61 | + // PHP-CS-Fixer Rules |
| 62 | + '@PhpCsFixer' => true, |
| 63 | + '@PhpCsFixer:risky' => true, |
| 64 | + |
| 65 | + // Symfony Rules |
| 66 | + '@Symfony' => true, |
| 67 | + '@Symfony:risky' => true, |
| 68 | + 'concat_space' => ['spacing' => 'one'], |
| 69 | + |
| 70 | + // Disable rule causing issues |
| 71 | + 'multiline_whitespace_before_semicolons' => true, |
55 | 72 | ]) |
56 | 73 | ->setFinder($finder) |
57 | 74 | ->setLineEnding(PHP_EOL); |
|
0 commit comments