Skip to content

Commit a10c133

Browse files
committed
Fix build
1 parent af3f105 commit a10c133

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/PHPStan/Rules/Classes/ImpossibleInstanceOfRuleTest.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77
use PHPStan\Testing\RuleTestCase;
88
use PHPUnit\Framework\Attributes\DataProvider;
99
use PHPUnit\Framework\Attributes\RequiresPhp;
10+
use function sprintf;
11+
use const PHP_VERSION_ID;
1012

1113
/**
1214
* @extends RuleTestCase<ImpossibleInstanceOfRule>
@@ -561,7 +563,7 @@ public function testBug13469(): void
561563
$this->treatPhpDocTypesAsCertain = false;
562564
$this->analyse([__DIR__ . '/data/bug-13469.php'], [
563565
[
564-
'Instanceof between Bug13469\Foo and Stringable will always evaluate to true.',
566+
sprintf('Instanceof between Bug13469\Foo and Stringable will always evaluate to %s.', PHP_VERSION_ID >= 80000 ? 'true' : 'false'),
565567
23,
566568
],
567569
]);

0 commit comments

Comments
 (0)