1616 * This configuration was taken from https://github.com/sebastianbergmann/phpunit/blob/master/.php_cs.dist
1717 * and slightly adjusted.
1818 */
19- return PhpCsFixer \Config:: create ( )
19+ return ( new PhpCsFixer \Config () )
2020 ->setRiskyAllowed (true )
2121 ->setCacheFile (__DIR__ .'/var/.php_cs.cache ' )
2222 ->setRules ([
3030 'continue ' ,
3131 'declare ' ,
3232 'default ' ,
33- 'die ' ,
3433 'do ' ,
3534 'exit ' ,
3635 'for ' ,
5049 ],
5150 'braces ' => true ,
5251 'cast_spaces ' => true ,
53- 'class_attributes_separation ' => ['elements ' => ['const ' , 'method ' , 'property ' ]],
52+ 'class_attributes_separation ' => ['elements ' => ['const ' => ' one ' , 'method ' => ' one ' , 'property ' => ' one ' ]],
5453 'combine_consecutive_issets ' => true ,
5554 'combine_consecutive_unsets ' => true ,
5655 'compact_nullable_typehint ' => true ,
8584 'lowercase_static_reference ' => true ,
8685 'magic_constant_casing ' => true ,
8786 'magic_method_casing ' => true ,
88- 'method_argument_space ' => ['ensure_fully_multiline ' => true ],
87+ 'method_argument_space ' => ['on_multiline ' => ' ensure_fully_multiline ' ],
8988 'modernize_types_casting ' => false ,
9089 'multiline_comment_opening_closing ' => true ,
9190 'multiline_whitespace_before_semicolons ' => true ,
9291 'native_constant_invocation ' => false ,
9392 'native_function_casing ' => false ,
94- 'native_function_invocation ' => true ,
93+ 'native_function_invocation ' => [ ' include ' => [ ' @all ' ]] ,
9594 'native_function_type_declaration_casing ' => true ,
9695 'new_with_braces ' => false ,
9796 'no_alias_functions ' => true ,
112111 'no_null_property_initialization ' => true ,
113112 'no_php4_constructor ' => true ,
114113 'no_short_bool_cast ' => true ,
115- 'no_short_echo_tag ' => true ,
114+ 'echo_tag_syntax ' => true ,
116115 'no_singleline_whitespace_before_semicolons ' => true ,
117116 'no_spaces_after_function_name ' => true ,
118117 'no_spaces_around_offset ' => true ,
208207 'standardize_not_equals ' => true ,
209208 'strict_param ' => true ,
210209 'ternary_to_null_coalescing ' => true ,
211- 'trailing_comma_in_multiline_array ' => true ,
210+ 'trailing_comma_in_multiline ' => true ,
212211 'trim_array_spaces ' => true ,
213212 'unary_operator_spaces ' => true ,
214213 'visibility_required ' => [
221220 'void_return ' => true ,
222221 'whitespace_after_comma_in_array ' => true ,
223222 ])
224- ->setFinder ($ finder );
223+ ->setFinder ($ finder );
0 commit comments