From b0ea8e60936c21f8775b5a8f2154781b3d5ed758 Mon Sep 17 00:00:00 2001 From: Dorian Villet Date: Mon, 12 Oct 2026 22:22:36 +0200 Subject: [PATCH] Accept all data provider arguments in OverridingMethodRuleTest::testBug3403() dataOverridingFinalMethod() yields three arguments. PHPUnit 12 rejects the data sets, and in Infection's per-mutant runs this test file makes the run end with "No tests executed!" and exit 0, so every mutant it covers is reported as escaped. Same fix as fb1506ecd applied to testOverridingFinalMethod(). Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01QW8VaDtn3cMdQowPSh1xGG --- tests/PHPStan/Rules/Methods/OverridingMethodRuleTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/PHPStan/Rules/Methods/OverridingMethodRuleTest.php b/tests/PHPStan/Rules/Methods/OverridingMethodRuleTest.php index 2cdea75d259..9ba61a4171f 100644 --- a/tests/PHPStan/Rules/Methods/OverridingMethodRuleTest.php +++ b/tests/PHPStan/Rules/Methods/OverridingMethodRuleTest.php @@ -322,7 +322,7 @@ public function testVariadicParameterIsAlwaysOptional(): void } #[DataProvider('dataOverridingFinalMethod')] - public function testBug3403(int $phpVersion): void + public function testBug3403(int $phpVersion, string $contravariantMessage, string $covariantMessage): void { $this->phpVersionId = $phpVersion; $this->analyse([__DIR__ . '/data/bug-3403.php'], []);