Skip to content

Fix loose comparison between '1' and '+1' #3301

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 1 commit into from
Aug 8, 2024

Conversation

thg2k
Copy link
Contributor

@thg2k thg2k commented Aug 7, 2024

Here is a bug fix on @ondrejmirtes's favorite PHP operator: ==

Basically I just removed the use of the identical operator, falling back on the Type::looseCompare() implementation which is already correct.

Do not use identical comparison on the same type, but rely on the
correct implementation of Type::looseCompare().
@ondrejmirtes ondrejmirtes merged commit 6ee5c22 into phpstan:1.11.x Aug 8, 2024
454 of 462 checks passed
@ondrejmirtes
Copy link
Member

Thank you.

@thg2k thg2k deleted the pr/loose_fix branch November 16, 2024 12:26
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.

2 participants