Skip to content

Commit 2406024

Browse files
committed
Fix tests
1 parent 277be5d commit 2406024

File tree

4 files changed

+4
-0
lines changed

4 files changed

+4
-0
lines changed

tests/PHPStan/Rules/Functions/ExistingClassesInArrowFunctionTypehintsRuleTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -324,6 +324,7 @@ public function testBug5206(): void
324324
$this->analyse([__DIR__ . '/data/bug-5206.php'], $errors);
325325
}
326326

327+
#[RequiresPhp('>= 8.2')]
327328
public function testNoDiscardVoid(): void
328329
{
329330
$this->analyse([__DIR__ . '/data/arrow-function-typehints-nodiscard.php'], [

tests/PHPStan/Rules/Functions/ExistingClassesInClosureTypehintsRuleTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -353,6 +353,7 @@ public function testDeprecatedImplicitlyNullableParameterType(): void
353353
]);
354354
}
355355

356+
#[RequiresPhp('>= 8.2')]
356357
public function testNoDiscardVoid(): void
357358
{
358359
$this->analyse([__DIR__ . '/data/closure-typehints-nodiscard.php'], [

tests/PHPStan/Rules/Functions/ExistingClassesInTypehintsRuleTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -489,6 +489,7 @@ public function testParamClosureThisClasses(): void
489489
]);
490490
}
491491

492+
#[RequiresPhp('>= 8.2')]
492493
public function testNoDiscardVoid(): void
493494
{
494495
$this->analyse([__DIR__ . '/data/typehints-nodiscard.php'], [

tests/PHPStan/Rules/Methods/ExistingClassesInTypehintsRuleTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -599,6 +599,7 @@ public function testBug12501(): void
599599
$this->analyse([__DIR__ . '/data/bug-12501.php'], []);
600600
}
601601

602+
#[RequiresPhp('>= 8.2')]
602603
public function testNoDiscardVoid(): void
603604
{
604605
$this->analyse([__DIR__ . '/data/typehints-nodiscard.php'], [

0 commit comments

Comments
 (0)