Skip to content

Commit 2ce278c

Browse files
committed
fix php 7.x build
1 parent 3770a5f commit 2ce278c

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

tests/PHPStan/Rules/Comparison/ImpossibleCheckTypeFunctionCallRuleTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1074,6 +1074,7 @@ public function testBug9666(): void
10741074
]);
10751075
}
10761076

1077+
#[RequiresPhp('>= 8.0')]
10771078
public function testBug9445(): void
10781079
{
10791080
$this->treatPhpDocTypesAsCertain = true;

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
<?php declare(strict_types=1);
1+
<?php // lint >= 8.0
2+
3+
declare(strict_types=1);
24

35
namespace Bug9445;
46

0 commit comments

Comments
 (0)