diff --git a/tests/PHPStan/Rules/Methods/CallToMethodStatementWithoutSideEffectsRuleTest.php b/tests/PHPStan/Rules/Methods/CallToMethodStatementWithoutSideEffectsRuleTest.php index dc395e77124..0e23437ae93 100644 --- a/tests/PHPStan/Rules/Methods/CallToMethodStatementWithoutSideEffectsRuleTest.php +++ b/tests/PHPStan/Rules/Methods/CallToMethodStatementWithoutSideEffectsRuleTest.php @@ -54,7 +54,7 @@ public function testRule(): void ]); } - #[RequiresPhp('< 8')] + #[RequiresPhp('< 8.0.0')] public function testRulePhp7(): void { $this->analyse([__DIR__ . '/data/method-call-statement-no-side-effects.php'], [ diff --git a/tests/PHPStan/Rules/Methods/CallToStaticMethodStatementWithoutSideEffectsRuleTest.php b/tests/PHPStan/Rules/Methods/CallToStaticMethodStatementWithoutSideEffectsRuleTest.php index e8ad4fa4b0b..9fc94aa711f 100644 --- a/tests/PHPStan/Rules/Methods/CallToStaticMethodStatementWithoutSideEffectsRuleTest.php +++ b/tests/PHPStan/Rules/Methods/CallToStaticMethodStatementWithoutSideEffectsRuleTest.php @@ -43,7 +43,7 @@ public function testRule(): void ]); } - #[RequiresPhp('< 8')] + #[RequiresPhp('< 8.0.0')] public function testRulePhp7(): void { $this->analyse([__DIR__ . '/data/static-method-call-statement-no-side-effects.php'], [ diff --git a/tests/PHPStan/Rules/TooWideTypehints/TooWidePropertyTypeRuleTest.php b/tests/PHPStan/Rules/TooWideTypehints/TooWidePropertyTypeRuleTest.php index 1988d4cb2e1..4e95d632c3a 100644 --- a/tests/PHPStan/Rules/TooWideTypehints/TooWidePropertyTypeRuleTest.php +++ b/tests/PHPStan/Rules/TooWideTypehints/TooWidePropertyTypeRuleTest.php @@ -138,7 +138,7 @@ public function testBug13624(): void $this->analyse([__DIR__ . '/data/bug-13624.php'], []); } - #[RequiresPhp('>= 8.0')] + #[RequiresPhp('>= 8.0.0')] public function testBug11844(): void { $this->analyse([__DIR__ . '/../../Analyser/nsrt/bug-11844.php'], []); diff --git a/tests/PHPStan/Rules/Variables/DefinedVariableRuleTest.php b/tests/PHPStan/Rules/Variables/DefinedVariableRuleTest.php index e370d5c870e..daf1eec4f64 100644 --- a/tests/PHPStan/Rules/Variables/DefinedVariableRuleTest.php +++ b/tests/PHPStan/Rules/Variables/DefinedVariableRuleTest.php @@ -1531,7 +1531,7 @@ public function testBug6688(): void ]); } - #[RequiresPhp('>= 8.0')] + #[RequiresPhp('>= 8.0.0')] public function testBug10729(): void { $this->cliArgumentsVariablesRegistered = true;