From d6aa4cd26e00d77dccaea19ff85db875d652350a Mon Sep 17 00:00:00 2001 From: Joas Schilling <213943+nickvergessen@users.noreply.github.com> Date: Thu, 13 Apr 2023 11:12:42 +0200 Subject: [PATCH 1/2] fix(rules): Replace deprecated braces rules Signed-off-by: Joas Schilling <213943+nickvergessen@users.noreply.github.com> --- src/Config.php | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) 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, From facd4c6ea2dd82e88349230b7423e7cfab25373a Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Thu, 13 Apr 2023 11:23:14 +0200 Subject: [PATCH 2/2] fix(deps)!: Bump minimum required friendsofphp/php-cs-fixer to 3.9 Signed-off-by: Joas Schilling --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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": [