Skip to content

Commit 1214a88

Browse files
committed
chore: update PHP CS Fixer rules to use newer rule names and consolidate trailing comma rules
1 parent 68d7585 commit 1214a88

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

.php-cs-fixer.php

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,12 +42,12 @@
4242
'blank_line_after_opening_tag' => true,
4343
'concat_space' => ['spacing' => 'one'],
4444
'declare_equal_normalize' => true,
45-
'function_typehint_space' => true,
45+
'type_declaration_spaces' => true,
4646
'single_line_comment_style' => ['comment_types' => ['hash']],
4747
'include' => true,
4848
'lowercase_cast' => true,
4949
'native_function_casing' => true,
50-
'new_with_braces' => true,
50+
'new_with_parentheses' => true,
5151
'no_blank_lines_after_class_opening' => true,
5252
'no_blank_lines_after_phpdoc' => true,
5353
'no_empty_comment' => true,
@@ -70,8 +70,7 @@
7070
'no_short_bool_cast' => true,
7171
'no_singleline_whitespace_before_semicolons' => true,
7272
'no_spaces_around_offset' => true,
73-
'no_trailing_comma_in_list_call' => true,
74-
'no_trailing_comma_in_singleline_array' => true,
73+
'no_trailing_comma_in_singleline' => true,
7574
'no_unneeded_control_parentheses' => [
7675
'statements' => ['break', 'clone', 'continue', 'echo_print', 'return', 'switch_case', 'yield'],
7776
],

0 commit comments

Comments
 (0)