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

Detect closure parameter types when passing closure in a partially callable union #1019

Merged
merged 1 commit into from Feb 25, 2022
Merged

Conversation

axlon
Copy link
Contributor

@axlon axlon commented Feb 14, 2022

Closes phpstan/phpstan#6629

Basically, drop all non-callable parts of a union when we pass a closure. If there is a better way to fix this let me know, happy to look into it.

@ondrejmirtes
Copy link
Member

Please rebase and fix the failures.

@axlon
Copy link
Contributor Author

axlon commented Feb 24, 2022

Done @ondrejmirtes! Some checks are still failing but from what I can tell these are unrelated to the PR

@ondrejmirtes ondrejmirtes merged commit a483c11 into phpstan:master Feb 25, 2022
@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
2 participants