diff --git a/composer.json b/composer.json index ebfef6e..2591fc6 100644 --- a/composer.json +++ b/composer.json @@ -4,7 +4,7 @@ "type": "library", "require": { "php": "^7.3|^8.0", - "friendsofphp/php-cs-fixer": "^3.2" + "friendsofphp/php-cs-fixer": "^3.9" }, "license": "MIT", "authors": [ diff --git a/src/Config.php b/src/Config.php index fb37bf2..c6b229a 100644 --- a/src/Config.php +++ b/src/Config.php @@ -23,10 +23,9 @@ public function getRules() : array { ], 'blank_line_after_namespace' => true, 'blank_line_after_opening_tag' => true, - 'braces' => [ - 'position_after_anonymous_constructs' => 'same', - 'position_after_control_structures' => 'same', - 'position_after_functions_and_oop_constructs' => 'same', + 'curly_braces_position' => [ + 'classes_opening_brace' => 'same_line', + 'functions_opening_brace' => 'same_line', ], 'elseif' => true, 'encoding' => true,