Skip to content

Commit 3fa575f

Browse files
committed
Fix
1 parent e97439c commit 3fa575f

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

tests/PHPStan/Analyser/NodeScopeResolverTest.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -895,8 +895,11 @@ public function dataFileAsserts(): iterable
895895
yield from $this->gatherAssertTypes(__DIR__ . '/data/mb-strlen-php73.php');
896896
}
897897

898+
if (PHP_VERSION_ID >= 80000) {
899+
yield from $this->gatherAssertTypes(__DIR__ . '/data/bug-7096.php');
900+
}
901+
898902
yield from $this->gatherAssertTypes(__DIR__ . '/data/bug-7068.php');
899-
yield from $this->gatherAssertTypes(__DIR__ . '/data/bug-7096.php');
900903
}
901904

902905
/**

tests/PHPStan/Analyser/data/bug-7096.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 Bug7096;
44

0 commit comments

Comments
 (0)