From c79ceb87eb0dcbba3b85cc4de6c68a2275f483ae Mon Sep 17 00:00:00 2001 From: lotyp Date: Thu, 23 May 2024 16:34:21 +0300 Subject: [PATCH] fix: class_attributes_separation ruleset --- src/RuleSets/DefaultSet.php | 1 + src/RuleSets/ExtendedPERSet.php | 5 +++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/RuleSets/DefaultSet.php b/src/RuleSets/DefaultSet.php index 1c2ff468..693e7fbd 100644 --- a/src/RuleSets/DefaultSet.php +++ b/src/RuleSets/DefaultSet.php @@ -104,6 +104,7 @@ public function rules(): array 'method' => 'one', 'property' => 'one', 'trait_import' => 'none', + 'case' => 'one', ], ], diff --git a/src/RuleSets/ExtendedPERSet.php b/src/RuleSets/ExtendedPERSet.php index 75aac8ad..9943616c 100644 --- a/src/RuleSets/ExtendedPERSet.php +++ b/src/RuleSets/ExtendedPERSet.php @@ -74,10 +74,11 @@ public function rules(): array ], 'class_attributes_separation' => [ 'elements' => [ - 'const' => 'one', + 'const' => 'only_if_meta', 'method' => 'one', - 'property' => 'one', + 'property' => 'only_if_meta', 'trait_import' => 'none', + 'case' => 'only_if_meta', ], ],