Skip to content

Commit da7141a

Browse files
committed
Fix build
1 parent 5ad7169 commit da7141a

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

tests/PHPStan/Rules/Comparison/ElseIfConstantConditionRuleTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ public function testBug6947(): void
150150
$this->analyse([__DIR__ . '/data/bug-6947.php'], [
151151
[
152152
'Elseif condition is always false.',
153-
11,
153+
13,
154154
'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%</>.',
155155
],
156156
]);

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

+3-1
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 Bug6947;
46

0 commit comments

Comments
 (0)