Skip to content

Commit 402d3a4

Browse files
committed
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.
1 parent 6232042 commit 402d3a4

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

tests/Unit/Core/DevkitConfigTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ final class DevkitConfigTest extends TestCase
1818
protected function setUp(): void
1919
{
2020
$this->tmpDir = sys_get_temp_dir() . '/devkit_config_test_' . uniqid();
21-
mkdir($this->tmpDir, 0777, true);
21+
mkdir($this->tmpDir, 0o777, true);
2222
}
2323

2424
protected function tearDown(): void

tests/Unit/ValueObject/MigrationReportTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ public function totalItemsCountsAllCategories(): void
6666
public function removeFilesDeletesExistingFiles(): void
6767
{
6868
$tmpDir = sys_get_temp_dir() . '/devkit_test_' . uniqid();
69-
mkdir($tmpDir, 0777, true);
69+
mkdir($tmpDir, 0o777, true);
7070

7171
$fileToRemove = $tmpDir . '/phpstan.neon';
7272
file_put_contents($fileToRemove, 'parameters:');

0 commit comments

Comments
 (0)