Skip to content

Commit c4933e5

Browse files
committed
Update rules
1 parent c43add2 commit c4933e5

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/Config.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ protected function prepareRules() : void
4545
'min_line_breaks' => 1,
4646
'max_line_breaks' => 1,
4747
],
48+
'braces_position' => true,
4849
'cast_spaces' => [
4950
'space' => 'single',
5051
],
@@ -63,14 +64,13 @@ protected function prepareRules() : void
6364
'combine_consecutive_unsets' => true,
6465
'combine_nested_dirname' => false,
6566
'comment_to_phpdoc' => false,
66-
'compact_nullable_typehint' => true,
67+
'compact_nullable_type_declaration' => true,
6768
'concat_space' => [
6869
'spacing' => 'one',
6970
],
7071
'constant_case' => true,
7172
'control_structure_braces' => true,
7273
'control_structure_continuation_position' => ['position' => 'same_line'],
73-
'curly_braces_position' => true,
7474
'date_time_immutable' => false,
7575
'declare_equal_normalize' => [
7676
'space' => 'none',
@@ -143,7 +143,7 @@ protected function prepareRules() : void
143143
'scope' => 'namespaced',
144144
'strict' => true,
145145
],
146-
'new_with_braces' => true,
146+
'new_with_parentheses' => true,
147147
'no_alias_functions' => true,
148148
'no_alternative_syntax' => false,
149149
'no_binary_string' => true,
@@ -188,8 +188,8 @@ protected function prepareRules() : void
188188
'no_trailing_comma_in_singleline' => true,
189189
'no_trailing_whitespace' => true,
190190
'no_trailing_whitespace_in_comment' => true,
191+
'no_unneeded_braces' => true,
191192
'no_unneeded_control_parentheses' => true,
192-
'no_unneeded_curly_braces' => true,
193193
'no_unneeded_final_method' => true,
194194
'no_unreachable_default_argument_value' => false,
195195
'no_unset_cast' => false,

0 commit comments

Comments
 (0)