-
Notifications
You must be signed in to change notification settings - Fork 430
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
Resolve object type by class const fetch in switch statement #745
Conversation
you should add a unit test which shows it fixes the initally reported problem |
4ead34e
to
275569d
Compare
If you need assistance feel free to ask |
That's what I did in my opening comment 😛 Anyway, I've pushed the tests - don't know if there is a need for both of them, as they handle quite similar case. Also, there is a room for improvement in case of Thank you, @staabm. |
sorry I didn't read properly.
the PR looks good to me - lets see what ondrej thinks about it.
agree that this is a separate issue. would be great to have an open issue for that, in case its not yet filled. great job. |
I will remove this from
👍 |
275569d
to
6f9339e
Compare
6f9339e
to
f1eefff
Compare
f1eefff
to
9e84db0
Compare
Relates to: phpstan/phpstan#5843
I'm not really sure how good (or bad) this solution is. Just glued it together and it seems to work.
Any tips on how I can include a test case for this and also improve this solution are more than welcome.