Skip to content

Commit d30e95b

Browse files
committed
fix php 8.x build
1 parent 5a5336c commit d30e95b

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
@@ -1039,7 +1039,7 @@ public function testBug13268(): void
10391039
$this->analyse([__DIR__ . '/data/bug-13268.php'], []);
10401040
}
10411041

1042-
#[RequiresPhp('>= 8.0')]
1042+
#[RequiresPhp('>= 8.1')]
10431043
public function testBug12087(): void
10441044
{
10451045
$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)