From 402d3a4f89c632c313a2cd9250042b3a52ecc6d6 Mon Sep 17 00:00:00 2001 From: Walmir Silva Date: Mon, 2 Mar 2026 10:36:49 -0300 Subject: [PATCH] fix(cs): apply style fixes required by PHP-CS-Fixer 3.94.x Without composer.lock, CI resolves php-cs-fixer 3.94.2 while local dev environment ran 3.89.2. The newer version adds two rules: - octal_notation: 0777 => 0o777 (PHP 8.1+ native octal syntax) Applies to: DevkitConfigTest.php, MigrationReportTest.php - class_attributes_separation: blank line between typed class properties (ProjectContextTest.php already had this correct) Updated local php-cs-fixer to 3.94.2 to eliminate version drift. --- tests/Unit/Core/DevkitConfigTest.php | 2 +- tests/Unit/ValueObject/MigrationReportTest.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/Unit/Core/DevkitConfigTest.php b/tests/Unit/Core/DevkitConfigTest.php index 23ea761..b769fea 100644 --- a/tests/Unit/Core/DevkitConfigTest.php +++ b/tests/Unit/Core/DevkitConfigTest.php @@ -18,7 +18,7 @@ final class DevkitConfigTest extends TestCase protected function setUp(): void { $this->tmpDir = sys_get_temp_dir() . '/devkit_config_test_' . uniqid(); - mkdir($this->tmpDir, 0777, true); + mkdir($this->tmpDir, 0o777, true); } protected function tearDown(): void diff --git a/tests/Unit/ValueObject/MigrationReportTest.php b/tests/Unit/ValueObject/MigrationReportTest.php index 5d6f541..a888ccb 100644 --- a/tests/Unit/ValueObject/MigrationReportTest.php +++ b/tests/Unit/ValueObject/MigrationReportTest.php @@ -66,7 +66,7 @@ public function totalItemsCountsAllCategories(): void public function removeFilesDeletesExistingFiles(): void { $tmpDir = sys_get_temp_dir() . '/devkit_test_' . uniqid(); - mkdir($tmpDir, 0777, true); + mkdir($tmpDir, 0o777, true); $fileToRemove = $tmpDir . '/phpstan.neon'; file_put_contents($fileToRemove, 'parameters:');