From e0d366ed9365c71279bbb1a2049185f1ddbfabc2 Mon Sep 17 00:00:00 2001 From: Markus Staab Date: Sat, 8 Aug 2026 10:24:52 +0200 Subject: [PATCH] Fix incomplete version requirements in tests --- tests/PHPStan/Rules/Variables/EmptyRuleTest.php | 2 +- tests/PHPStan/Rules/Variables/IssetRuleTest.php | 2 +- tests/PHPStan/Rules/Variables/NullCoalesceRuleTest.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/PHPStan/Rules/Variables/EmptyRuleTest.php b/tests/PHPStan/Rules/Variables/EmptyRuleTest.php index ec82e97451..6b146d6c8e 100644 --- a/tests/PHPStan/Rules/Variables/EmptyRuleTest.php +++ b/tests/PHPStan/Rules/Variables/EmptyRuleTest.php @@ -267,7 +267,7 @@ public function testNullCoalesceAssignRightSideScope(): void $this->analyse([__DIR__ . '/data/null-coalesce-assign-right-side-scope.php'], []); } - #[RequiresPhp('>= 8.2')] + #[RequiresPhp('>= 8.2.0')] public function testPropertyInitializationCustomSerialization(): void { $this->treatPhpDocTypesAsCertain = true; diff --git a/tests/PHPStan/Rules/Variables/IssetRuleTest.php b/tests/PHPStan/Rules/Variables/IssetRuleTest.php index 2e9bca0b7a..61a9e57ed0 100644 --- a/tests/PHPStan/Rules/Variables/IssetRuleTest.php +++ b/tests/PHPStan/Rules/Variables/IssetRuleTest.php @@ -528,7 +528,7 @@ public function testIssetAfterRememberedConstructor(): void ]); } - #[RequiresPhp('>= 8.2')] + #[RequiresPhp('>= 8.2.0')] public function testPropertyInitializationCustomSerialization(): void { $this->treatPhpDocTypesAsCertain = true; diff --git a/tests/PHPStan/Rules/Variables/NullCoalesceRuleTest.php b/tests/PHPStan/Rules/Variables/NullCoalesceRuleTest.php index 398fb42f76..2f9fd6c6f8 100644 --- a/tests/PHPStan/Rules/Variables/NullCoalesceRuleTest.php +++ b/tests/PHPStan/Rules/Variables/NullCoalesceRuleTest.php @@ -613,7 +613,7 @@ public function testBug15056(): void $this->analyse([__DIR__ . '/data/bug-15056.php'], []); } - #[RequiresPhp('>= 8.2')] + #[RequiresPhp('>= 8.2.0')] public function testPropertyInitializationCustomSerialization(): void { $this->analyse([__DIR__ . '/data/property-initialization-custom-serialization.php'], [