Skip to content

Fix #12660 #3848

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

Merged
merged 2 commits into from
Mar 3, 2025
Merged

Fix #12660 #3848

merged 2 commits into from
Mar 3, 2025

Conversation

stepo2
Copy link
Contributor

@stepo2 stepo2 commented Mar 2, 2025

This attempts to fix phpstan/phpstan#12660

Copy link
Member

@ondrejmirtes ondrejmirtes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add a test. Put this into /tests/PHPStan/Analyser/nsrt: https://phpstan.org/r/05a1ef9b-1e3e-4af9-8e02-89f18ab60182

Right now it's failing. In your PR it should pass.

@ondrejmirtes ondrejmirtes merged commit a6f295e into phpstan:2.1.x Mar 3, 2025
241 checks passed
@ondrejmirtes
Copy link
Member

Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

False positive: class (validly!) named Integer wrongly recognized as int
2 participants