Skip to content

Commit 89a523a

Browse files
phpstan-botclaude
andcommitted
Use early exit for PHP version check in NodeScopeResolverTest
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent a19ad57 commit 89a523a

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

tests/PHPStan/Analyser/NodeScopeResolverTest.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -285,9 +285,11 @@ private static function findTestFiles(): iterable
285285
yield __DIR__ . '/../Rules/Variables/data/bug-14124b.php';
286286
yield __DIR__ . '/../Rules/Arrays/data/bug-14308.php';
287287

288-
if (PHP_VERSION_ID >= 80000) {
289-
yield __DIR__ . '/../Rules/Variables/data/bug-6833.php';
288+
if (PHP_VERSION_ID < 80000) {
289+
return;
290290
}
291+
292+
yield __DIR__ . '/../Rules/Variables/data/bug-6833.php';
291293
}
292294

293295
/**

0 commit comments

Comments
 (0)