Skip to content

Commit 5c71ab2

Browse files
committed
Fix test
1 parent 4025209 commit 5c71ab2

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

tests/PHPStan/Analyser/AnalyserIntegrationTest.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1077,6 +1077,10 @@ public function testBug8503(): void
10771077

10781078
public function testBug8537(): void
10791079
{
1080+
if (PHP_VERSION_ID < 80000) {
1081+
$this->markTestSkipped('Test requires PHP 8.0.');
1082+
}
1083+
10801084
$errors = $this->runAnalyse(__DIR__ . '/data/bug-8537.php');
10811085
$this->assertNoErrors($errors);
10821086
}

tests/PHPStan/Analyser/data/bug-8537.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<?php
1+
<?php // lint >= 8.0
22

33
namespace Bug8537;
44

0 commit comments

Comments
 (0)