Skip to content

Commit d6aa4cd

Browse files
fix(rules): Replace deprecated braces rules
Signed-off-by: Joas Schilling <213943+nickvergessen@users.noreply.github.com>
1 parent 88d3ffd commit d6aa4cd

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/Config.php

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,9 @@ public function getRules() : array {
2323
],
2424
'blank_line_after_namespace' => true,
2525
'blank_line_after_opening_tag' => true,
26-
'braces' => [
27-
'position_after_anonymous_constructs' => 'same',
28-
'position_after_control_structures' => 'same',
29-
'position_after_functions_and_oop_constructs' => 'same',
26+
'curly_braces_position' => [
27+
'classes_opening_brace' => 'same_line',
28+
'functions_opening_brace' => 'same_line',
3029
],
3130
'elseif' => true,
3231
'encoding' => true,

0 commit comments

Comments
 (0)