Skip to content

Commit

Permalink
Fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
ondrejmirtes committed Feb 5, 2025
1 parent 5ad7169 commit da7141a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ public function testBug6947(): void
$this->analyse([__DIR__ . '/data/bug-6947.php'], [
[
'Elseif condition is always false.',
11,
13,
'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%</>.',
],
]);
Expand Down
4 changes: 3 additions & 1 deletion tests/PHPStan/Rules/Comparison/data/bug-6947.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
<?php declare(strict_types = 1);
<?php // lint >= 8.0

declare(strict_types = 1);

namespace Bug6947;

Expand Down

0 comments on commit da7141a

Please sign in to comment.