From b5a1cadb5f587cdd63742243492f8bdb0cafb360 Mon Sep 17 00:00:00 2001 From: Guillaume Erpeldinger Date: Wed, 23 Sep 2026 01:04:44 +0200 Subject: [PATCH] Point ReturnNullableTypeRectorPhp82Test to its own fixtures and config It read the same Fixture directory with the default config, so FixturePhp82 and configured_rule_php82.php never ran, and both test classes wrote the same temporary input files, which fails randomly when the chunks run in parallel (hash_file on a file the other class just deleted). --- .../ReturnNullableTypeRectorPhp82Test.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rules-tests/TypeDeclaration/Rector/ClassMethod/ReturnNullableTypeRector/ReturnNullableTypeRectorPhp82Test.php b/rules-tests/TypeDeclaration/Rector/ClassMethod/ReturnNullableTypeRector/ReturnNullableTypeRectorPhp82Test.php index 5f5f3704408..d0f3ec1dc75 100644 --- a/rules-tests/TypeDeclaration/Rector/ClassMethod/ReturnNullableTypeRector/ReturnNullableTypeRectorPhp82Test.php +++ b/rules-tests/TypeDeclaration/Rector/ClassMethod/ReturnNullableTypeRector/ReturnNullableTypeRectorPhp82Test.php @@ -18,11 +18,11 @@ public function test(string $filePath): void public static function provideData(): Iterator { - return self::yieldFilesFromDirectory(__DIR__ . '/Fixture'); + return self::yieldFilesFromDirectory(__DIR__ . '/FixturePhp82'); } public function provideConfigFilePath(): string { - return __DIR__ . '/config/configured_rule.php'; + return __DIR__ . '/config/configured_rule_php82.php'; } }