Skip to content

Commit 44215e4

Browse files
committed
Fix test __toString() without return on php 7.4
1 parent b6b20da commit 44215e4

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests/PHPStan/Analyser/NodeScopeResolverTest.php

+4
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,10 @@ class NodeScopeResolverTest extends TypeInferenceTestCase
2626
private static function findTestFiles(): iterable
2727
{
2828
foreach (self::findTestDataFilesFromDirectory(__DIR__ . '/nsrt') as $testFile) {
29+
if (str_ends_with($testFile, 'tests/PHPStan/Analyser/nsrt/bug-2471.php') && PHP_VERSION_ID < 80000) {
30+
continue;
31+
}
32+
2933
yield $testFile;
3034
}
3135

0 commit comments

Comments
 (0)