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', ], ],