Skip to content

Commit

Permalink
Fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
ondrejmirtes committed May 15, 2024
1 parent ee33f1e commit f7fac66
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

use PHPStan\Rules\Rule;
use PHPStan\Testing\RuleTestCase;
use const PHP_VERSION_ID;

/**
* @extends RuleTestCase<CallToMethodStatementWithoutImpurePointsRule>
Expand Down Expand Up @@ -60,6 +61,9 @@ public function testRule(): void

public function testBug11011(): void
{
if (PHP_VERSION_ID < 80000) {
$this->markTestSkipped('Test requires PHP 8.0.');
}
$this->analyse([__DIR__ . '/data/bug-11011.php'], [
[
'Call to method Bug11011\AnotherPureImpl::doFoo() on a separate line has no effect.',
Expand Down
2 changes: 1 addition & 1 deletion tests/PHPStan/Rules/DeadCode/data/bug-11011.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?php
<?php // lint >= 8.0

namespace Bug11011;

Expand Down

0 comments on commit f7fac66

Please sign in to comment.