diff --git a/composer.json b/composer.json index e36cfb7..34be208 100644 --- a/composer.json +++ b/composer.json @@ -23,7 +23,7 @@ "symfony/console": "^7 || ^8" }, "require-dev": { - "friendsofphp/php-cs-fixer": "3.95.1", + "friendsofphp/php-cs-fixer": "3.95.2", "phpunit/phpunit": "^11 || ^12 || ^13", "guzzlehttp/guzzle": "^7.0", "humbug/box": "^4.6", diff --git a/tests/src/Functional/SplitCommandTest.php b/tests/src/Functional/SplitCommandTest.php index d89bed6..5c6f2d1 100644 --- a/tests/src/Functional/SplitCommandTest.php +++ b/tests/src/Functional/SplitCommandTest.php @@ -51,7 +51,7 @@ public function testSplitMultipleEntries(): void $this->assertSame(Command::SUCCESS, $this->commandTester->getStatusCode()); // Should create 11 files (one per entry) - $files = glob($this->tempDir.'/*.har'); + $files = glob($this->tempDir.'/*.har') ?: []; // Verify file names are sequential $expectedFiles = []; @@ -59,7 +59,7 @@ public function testSplitMultipleEntries(): void $expectedFiles[] = $this->tempDir.'/'.$i.'.har'; } natsort($files); - $files = array_values($files); // Re-index array after sorting // @phpstan-ignore argument.templateType + $files = array_values($files); // Re-index array after sorting $this->assertEquals($expectedFiles, $files); // Verify each file is valid HAR with single entry