@@ -26,6 +26,7 @@ public function __construct()
2626 $ this ->rules = [
2727 'align_multiline_comment ' => ['comment_type ' => 'all_multiline ' ],
2828 'array_indentation ' => true ,
29+ 'array_push ' => true ,
2930 'array_syntax ' => ['syntax ' => 'short ' ],
3031 'backtick_to_shell_exec ' => true ,
3132 'binary_operator_spaces ' => [
@@ -41,7 +42,6 @@ public function __construct()
4142 'blank_line_before_return ' => false , // deprecated
4243 'blank_line_before_statement ' => [
4344 'statements ' => [
44- 'break ' ,
4545 'continue ' ,
4646 'for ' ,
4747 'foreach ' ,
@@ -73,6 +73,7 @@ public function __construct()
7373 'single_line ' => true ,
7474 ],
7575 'class_keyword_remove ' => false ,
76+ 'clean_namespace ' => true ,
7677 'combine_consecutive_issets ' => true ,
7778 'combine_consecutive_unsets ' => true ,
7879 'combine_nested_dirname ' => true , // risky
@@ -88,10 +89,15 @@ public function __construct()
8889 'doctrine_annotation_braces ' => false ,
8990 'doctrine_annotation_indentation ' => false ,
9091 'doctrine_annotation_spaces ' => false ,
91- 'elseif ' => true ,
92- 'encoding ' => true ,
93- 'ereg_to_preg ' => true , // risky
94- 'error_suppression ' => [
92+ 'echo_tag_syntax ' => [
93+ 'format ' => 'short ' ,
94+ 'long_function ' => 'echo ' ,
95+ 'shorten_simple_statements_only ' => true ,
96+ ],
97+ 'elseif ' => true ,
98+ 'encoding ' => true ,
99+ 'ereg_to_preg ' => true , // risky
100+ 'error_suppression ' => [
95101 'mute_deprecation_error ' => true ,
96102 'noise_remaining_usages ' => false ,
97103 'noise_remaining_usages_exclude ' => [],
@@ -130,7 +136,14 @@ public function __construct()
130136 'subpackage ' ,
131137 ],
132138 ],
139+ 'general_phpdoc_tag_rename ' => [
140+ 'case_sensitive ' => false ,
141+ 'fix_annotation ' => true ,
142+ 'fix_inline ' => true ,
143+ 'replacements ' => ['inheritDocs ' => 'inheritDoc ' ],
144+ ],
133145 'global_namespace_import ' => ['import_classes ' => false ],
146+ 'group_import ' => false ,
134147 'hash_to_slash_comment ' => false , // deprecated
135148 'header_comment ' => false ,
136149 'heredoc_indentation ' => true ,
@@ -140,6 +153,7 @@ public function __construct()
140153 'increment_style ' => ['style ' => 'post ' ],
141154 'indentation_type ' => true ,
142155 'is_null ' => true , // risky
156+ 'lambda_not_used_import ' => true ,
143157 'line_ending ' => true ,
144158 'linebreak_after_opening_tag ' => true ,
145159 'list_syntax ' => ['syntax ' => 'short ' ],
@@ -182,6 +196,7 @@ public function __construct()
182196 'native_function_type_declaration_casing ' => true ,
183197 'new_with_braces ' => true ,
184198 'no_alias_functions ' => true , // risky
199+ 'no_alias_language_construct_call ' => true ,
185200 'no_alternative_syntax ' => false ,
186201 'no_binary_string ' => true ,
187202 'no_blank_lines_after_class_opening ' => true ,
@@ -219,7 +234,7 @@ public function __construct()
219234 'no_null_property_initialization ' => true ,
220235 'no_php4_constructor ' => true , // risky
221236 'no_short_bool_cast ' => true ,
222- 'no_short_echo_tag ' => false ,
237+ 'no_short_echo_tag ' => false , // deprecated
223238 'no_singleline_whitespace_before_semicolons ' => true ,
224239 'no_spaces_after_function_name ' => true ,
225240 'no_spaces_around_offset ' => [
@@ -235,6 +250,7 @@ public function __construct()
235250 'no_trailing_comma_in_singleline_array ' => true ,
236251 'no_trailing_whitespace ' => true ,
237252 'no_trailing_whitespace_in_comment ' => true ,
253+ 'no_trailing_whitespace_in_string ' => true , // risky
238254 'no_unneeded_control_parentheses ' => true ,
239255 'no_unneeded_curly_braces ' => ['namespaces ' => true ],
240256 'no_unneeded_final_method ' => true , // risky
@@ -244,6 +260,7 @@ public function __construct()
244260 'no_unused_imports ' => true ,
245261 'no_useless_else ' => true ,
246262 'no_useless_return ' => true ,
263+ 'no_useless_sprintf ' => true , // risky
247264 'no_whitespace_before_comma_in_array ' => true ,
248265 'no_whitespace_in_blank_line ' => true ,
249266 'non_printable_character ' => true , // risky
@@ -252,7 +269,11 @@ public function __construct()
252269 'not_operator_with_successor_space ' => true ,
253270 'nullable_type_declaration_for_default_null_value ' => ['use_nullable_type_declaration ' => true ],
254271 'object_operator_without_whitespace ' => true ,
255- 'ordered_class_elements ' => [
272+ 'operator_linebreak ' => [
273+ 'only_booleans ' => false ,
274+ 'position ' => 'beginning ' ,
275+ ],
276+ 'ordered_class_elements ' => [
256277 'order ' => [
257278 'use_trait ' ,
258279 'constant_public ' ,
@@ -275,6 +296,7 @@ public function __construct()
275296 ],
276297 'ordered_imports ' => true ,
277298 'ordered_interfaces ' => false , // risky
299+ 'ordered_traits ' => true ,
278300 'php_unit_construct ' => true , // risky
279301 'php_unit_dedicate_assert ' => ['target ' => 'newest ' ], // risky
280302 'php_unit_dedicate_assert_internal_type ' => ['target ' => 'newest ' ], // risky
@@ -297,19 +319,23 @@ public function __construct()
297319 'phpdoc_align ' => true ,
298320 'phpdoc_annotation_without_dot ' => true ,
299321 'phpdoc_indent ' => true ,
300- 'phpdoc_inline_tag ' => true ,
322+ 'phpdoc_inline_tag ' => false , // deprecated
323+ 'phpdoc_inline_tag_normalizer ' => true ,
301324 'phpdoc_line_span ' => true ,
302325 'phpdoc_no_access ' => true ,
303326 'phpdoc_no_alias_tag ' => true ,
304327 'phpdoc_no_empty_return ' => false ,
305328 'phpdoc_no_package ' => true ,
306329 'phpdoc_no_useless_inheritdoc ' => true ,
307330 'phpdoc_order ' => true ,
331+ 'phpdoc_order_by_value ' => false ,
308332 'phpdoc_return_self_reference ' => true ,
309333 'phpdoc_scalar ' => true ,
310334 'phpdoc_separation ' => true ,
311335 'phpdoc_single_line_var_spacing ' => true ,
312336 'phpdoc_summary ' => true ,
337+ 'phpdoc_tag_casing ' => true ,
338+ 'phpdoc_tag_type ' => true ,
313339 'phpdoc_to_comment ' => true ,
314340 'phpdoc_to_param_type ' => false , // risky
315341 'phpdoc_to_return_type ' => false , // risky
@@ -323,8 +349,10 @@ public function __construct()
323349 'pre_increment ' => false , // deprecated
324350 'protected_to_private ' => true ,
325351 'psr0 ' => false ,
326- 'psr4 ' => true ,
352+ 'psr4 ' => true , // deprecated
353+ 'psr_autoloading ' => ['dir ' => null ],
327354 'random_api_migration ' => true ,
355+ 'regular_callable_call ' => true , // risky
328356 'return_assignment ' => true ,
329357 'return_type_declaration ' => true ,
330358 'self_accessor ' => true , // risky
@@ -334,6 +362,7 @@ public function __construct()
334362 'short_scalar_cast ' => true ,
335363 'silenced_deprecation_error ' => false , // deprecated
336364 'simple_to_complex_string_variable ' => true ,
365+ 'simplified_if_return ' => true ,
337366 'simplified_null_return ' => false ,
338367 'single_blank_line_at_eof ' => true ,
339368 'single_blank_line_before_namespace ' => true ,
@@ -343,6 +372,7 @@ public function __construct()
343372 'single_line_comment_style ' => true ,
344373 'single_line_throw ' => false ,
345374 'single_quote ' => true ,
375+ 'single_space_after_construct ' => true ,
346376 'single_trait_insert_per_statement ' => true ,
347377 'space_after_semicolon ' => true ,
348378 'standardize_increment ' => true ,
@@ -353,11 +383,14 @@ public function __construct()
353383 'string_line_ending ' => true , // risky
354384 'switch_case_semicolon_to_colon ' => true ,
355385 'switch_case_space ' => true ,
386+ 'switch_continue_to_break ' => true ,
356387 'ternary_operator_spaces ' => true ,
388+ 'ternary_to_elvis_operator ' => true , // risky
357389 'ternary_to_null_coalescing ' => true ,
358390 'trailing_comma_in_multiline_array ' => true ,
359391 'trim_array_spaces ' => true ,
360392 'unary_operator_spaces ' => true ,
393+ 'use_arrow_functions ' => false , // risky
361394 'visibility_required ' => [
362395 'elements ' => [
363396 'const ' ,
0 commit comments