Skip to content

Only set return native type from null return type when declaring class is built in on __toString() #3978

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 8 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix test __toString() without return on php 7.4
  • Loading branch information
samsonasik committed May 2, 2025
commit 12ee656360f0aabb402ad64383b5ff7e4a327599
4 changes: 0 additions & 4 deletions tests/PHPStan/Analyser/NodeScopeResolverTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,6 @@ class NodeScopeResolverTest extends TypeInferenceTestCase
private static function findTestFiles(): iterable
{
foreach (self::findTestDataFilesFromDirectory(__DIR__ . '/nsrt') as $testFile) {
if (str_ends_with($testFile, 'bug-2471.php') && PHP_VERSION_ID < 80000) {
continue;
}

yield $testFile;
}

Expand Down
Loading