Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
ondrejmirtes committed Dec 17, 2022
1 parent 4025209 commit 5c71ab2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions tests/PHPStan/Analyser/AnalyserIntegrationTest.php
Expand Up @@ -1077,6 +1077,10 @@ public function testBug8503(): void

public function testBug8537(): void
{
if (PHP_VERSION_ID < 80000) {
$this->markTestSkipped('Test requires PHP 8.0.');
}

$errors = $this->runAnalyse(__DIR__ . '/data/bug-8537.php');
$this->assertNoErrors($errors);
}
Expand Down
2 changes: 1 addition & 1 deletion tests/PHPStan/Analyser/data/bug-8537.php
@@ -1,4 +1,4 @@
<?php
<?php // lint >= 8.0

namespace Bug8537;

Expand Down

0 comments on commit 5c71ab2

Please sign in to comment.