|
43 | 43 | 'yield', |
44 | 44 | ], |
45 | 45 | ], |
46 | | - 'braces' => [ |
47 | | - 'allow_single_line_closure' => false, |
48 | | - 'position_after_anonymous_constructs' => 'same', |
49 | | - 'position_after_control_structures' => 'same', |
50 | | - 'position_after_functions_and_oop_constructs' => 'same' |
51 | | - ], |
| 46 | + // deprecated fixer removed: "braces"; use dedicated rules provided by PHP-CS-Fixer instead |
52 | 47 | 'cast_spaces' => ['space' => 'none'], |
53 | 48 |
|
54 | 49 | // This fixer removes the blank line at class start, no way to disable that, so we disable the fixer :( |
|
92 | 87 | 'import_functions' => true, |
93 | 88 | ], |
94 | 89 | 'native_function_invocation' => false, |
95 | | - 'new_with_braces' => false, |
| 90 | + // "new_with_braces" is deprecated → use "new_with_parentheses" |
| 91 | + 'new_with_parentheses' => false, |
96 | 92 | 'no_alias_functions' => true, |
97 | 93 | 'no_alternative_syntax' => true, |
98 | 94 | 'no_blank_lines_after_class_opening' => false, |
99 | 95 | 'no_blank_lines_after_phpdoc' => true, |
100 | | - 'no_blank_lines_before_namespace' => true, |
| 96 | + 'blank_lines_before_namespace' => false, |
101 | 97 | 'no_closing_tag' => true, |
102 | 98 | 'no_empty_comment' => true, |
103 | 99 | 'no_empty_phpdoc' => true, |
|
114 | 110 | 'echo_tag_syntax' => ['format' => 'long'], |
115 | 111 | 'no_singleline_whitespace_before_semicolons' => true, |
116 | 112 | 'no_spaces_after_function_name' => true, |
117 | | - 'no_spaces_inside_parenthesis' => true, |
| 113 | + // deprecated: no_spaces_inside_parenthesis → use spaces_inside_parentheses |
| 114 | + 'spaces_inside_parentheses' => ['space' => 'none'], |
118 | 115 | 'no_superfluous_elseif' => true, |
119 | 116 | 'no_superfluous_phpdoc_tags' => true, |
120 | | - 'no_trailing_comma_in_list_call' => true, |
| 117 | + // deprecated: no_trailing_comma_in_list_call (covered by no_trailing_comma_in_singleline) |
121 | 118 | 'no_trailing_comma_in_singleline' => true, |
122 | 119 | 'no_trailing_whitespace' => true, |
123 | 120 | 'no_trailing_whitespace_in_comment' => true, |
124 | 121 | 'no_unneeded_control_parentheses' => false, |
125 | | - 'no_unneeded_curly_braces' => false, |
| 122 | + // deprecated: no_unneeded_curly_braces → use no_unneeded_braces |
| 123 | + 'no_unneeded_braces' => false, |
126 | 124 | 'no_unneeded_final_method' => true, |
127 | 125 | 'no_unreachable_default_argument_value' => true, |
128 | 126 | 'no_unset_on_property' => true, |
|
201 | 199 | 'trailing_comma_in_multiline' => false, |
202 | 200 | 'trim_array_spaces' => true, |
203 | 201 | 'unary_operator_spaces' => true, |
204 | | - 'visibility_required' => [ |
205 | | - 'elements' => [ |
206 | | - 'const', |
207 | | - 'method', |
208 | | - 'property', |
209 | | - ], |
210 | | - ], |
| 202 | + // deprecated: visibility_required → use modifier_keywords |
| 203 | + 'modifier_keywords' => true, |
211 | 204 | 'void_return' => true, |
212 | 205 | 'whitespace_after_comma_in_array' => true, |
213 | 206 | 'yoda_style' => false |
|
0 commit comments