Skip to content

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