Skip to content

Commit 30798b5

Browse files
committed
Fix test
1 parent b63c0aa commit 30798b5

File tree

4 files changed

+10
-3
lines changed

4 files changed

+10
-3
lines changed

tests/PHPStan/Analyser/NodeScopeResolverTest.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -693,8 +693,12 @@ public function dataFileAsserts(): iterable
693693
if (PHP_VERSION_ID >= 70400) {
694694
yield from $this->gatherAssertTypes(__DIR__ . '/../Rules/Comparison/data/bug-6473.php');
695695
}
696+
697+
if (PHP_VERSION_ID >= 80000) {
698+
yield from $this->gatherAssertTypes(__DIR__ . '/data/bug-6566-types.php');
699+
}
700+
696701
yield from $this->gatherAssertTypes(__DIR__ . '/data/bug-6500.php');
697-
yield from $this->gatherAssertTypes(__DIR__ . '/data/bug-6566-types.php');
698702
}
699703

700704
/**

tests/PHPStan/Analyser/data/bug-6566-types.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 Bug6566Types;
44

tests/PHPStan/Rules/Properties/AccessPropertiesRuleTest.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -545,6 +545,9 @@ public function testBug6385(): void
545545

546546
public function testBug6566(): void
547547
{
548+
if (PHP_VERSION_ID < 80000) {
549+
$this->markTestSkipped('Test requires PHP 8.0.');
550+
}
548551
$this->checkThisOnly = false;
549552
$this->checkUnionTypes = true;
550553
$this->analyse([__DIR__ . '/data/bug-6566.php'], []);

tests/PHPStan/Rules/Properties/data/bug-6566.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 Bug6566;
44

0 commit comments

Comments
 (0)