Skip to content

Commit acf93af

Browse files
committed
fix php 7.x build
1 parent df6de8d commit acf93af

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
@@ -1068,6 +1068,7 @@ public function testBug9666(): void
10681068
]);
10691069
}
10701070

1071+
#[RequiresPhp('>= 8.0')]
10711072
public function testBug9445(): void
10721073
{
10731074
$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)