Skip to content

Commit 48610c8

Browse files
committed
fix php 8.x build
1 parent 0ca805e commit 48610c8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

tests/PHPStan/Rules/Comparison/ImpossibleCheckTypeFunctionCallRuleTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1045,7 +1045,7 @@ public function testBug13268(): void
10451045
$this->analyse([__DIR__ . '/data/bug-13268.php'], []);
10461046
}
10471047

1048-
#[RequiresPhp('>= 8.0')]
1048+
#[RequiresPhp('>= 8.1')]
10491049
public function testBug12087(): void
10501050
{
10511051
$tipText = 'Because the type is coming from a PHPDoc, you can turn off this check by setting <fg=cyan>treatPhpDocTypesAsCertain: false</> in your <fg=cyan>%configurationFile%</>.';

tests/PHPStan/Rules/Comparison/data/bug-12087.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<?php declare(strict_types=1);
1+
<?php // lint >= 8.1
22

33
namespace Bug12087;
44

0 commit comments

Comments
 (0)