From 8c73924a445d72ff143be4f24221f7a79188ba91 Mon Sep 17 00:00:00 2001 From: Walmir Silva Date: Mon, 2 Mar 2026 10:43:52 -0300 Subject: [PATCH 1/2] fix(cs): add blank line between typed properties in ProjectContextTest CSS-Fixer 3.94.x enforces class_attributes_separation: blank line required between typed class properties. private ProjectContext $context; + (blank line) private string $root; --- tests/Unit/Core/ProjectContextTest.php | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/Unit/Core/ProjectContextTest.php b/tests/Unit/Core/ProjectContextTest.php index 74ec259..0011c72 100644 --- a/tests/Unit/Core/ProjectContextTest.php +++ b/tests/Unit/Core/ProjectContextTest.php @@ -13,6 +13,7 @@ final class ProjectContextTest extends TestCase { private ProjectContext $context; + private string $root; protected function setUp(): void From 78e1cf9490d84513216e199406c4b7e715b12b1d Mon Sep 17 00:00:00 2001 From: Walmir Silva Date: Mon, 2 Mar 2026 10:46:25 -0300 Subject: [PATCH 2/2] style(cs-rules): remove mandatory blank line between class properties MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit PSR-12 does not require blank lines between properties. The previous rule 'class_attributes_separation' => ['property' => 'one'] forced blank lines between every property, which is visually noisy in classes with many related fields. Changed to 'property' => 'none' — only method separation remains enforced. Automatically removed the blank lines from ProjectContextTest.php via cs:fix. --- src/Core/ProjectDetector.php | 2 +- tests/Unit/Core/ProjectContextTest.php | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/Core/ProjectDetector.php b/src/Core/ProjectDetector.php index 9562873..dff5750 100644 --- a/src/Core/ProjectDetector.php +++ b/src/Core/ProjectDetector.php @@ -185,7 +185,7 @@ private function detectTestSuites(string $root, array $testDirs): array 'statements' => ['break', 'continue', 'declare', 'return', 'throw', 'try'], ], 'class_attributes_separation' => [ - 'elements' => ['method' => 'one', 'property' => 'one'], + 'elements' => ['method' => 'one', 'property' => 'none'], ], 'method_argument_space' => [ 'on_multiline' => 'ensure_fully_multiline', diff --git a/tests/Unit/Core/ProjectContextTest.php b/tests/Unit/Core/ProjectContextTest.php index 0011c72..74ec259 100644 --- a/tests/Unit/Core/ProjectContextTest.php +++ b/tests/Unit/Core/ProjectContextTest.php @@ -13,7 +13,6 @@ final class ProjectContextTest extends TestCase { private ProjectContext $context; - private string $root; protected function setUp(): void