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 resolving mixed + array #1579
Conversation
f4b3b97
to
128256a
Compare
//cc @rvanvelzen |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have put more thought into this PR and added a few more cases like int|array + int|array
.
it fixed a few phpstan-src baseline errors, too.
it feels in better shape now
@herndlm after your recent changes on the mixed type I see new/no longer reported errors after rebase. would be great if I could get your opinion on these. |
good catch. fixed in ea57b6e thank you. |
a031f6c
to
e098195
Compare
Thank you! |
rebased version of #1445 reworked to use
isSuperTypeOf
checks (feedback from ondrey).#1445 seemed abandoned therefore I figured I could push it over the finishing line
Fixes phpstan/phpstan#7492