Skip to content
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

Fix JustNullableTypeTrait.equals() #335

Merged
merged 1 commit into from Oct 9, 2020

Conversation

jlherren
Copy link
Contributor

@jlherren jlherren commented Oct 9, 2020

equals() wrongly returned false for two instances of ClassStringType. This
lead to an exponential explosion of very large UnionType objects with all
identical types inside.

Fixes phpstan/phpstan#3866

equals() wrongly returned false for two instances of ClassStringType.  This
lead to an exponential explosion of very large UnionType objects with all
identical types inside.

Fixes #3866
@jlherren
Copy link
Contributor Author

jlherren commented Oct 9, 2020

I hope the self-compare tests make sense like this.

@ondrejmirtes
Copy link
Member

Thank you, perfect!

@ondrejmirtes ondrejmirtes merged commit 8925195 into phpstan:master Oct 9, 2020
@jlherren jlherren deleted the fix-infinite-analysis branch October 14, 2020 09:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants