Skip to content

Fix bug 8212 #1995

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 2 commits into from
Nov 14, 2022
Merged

Fix bug 8212 #1995

merged 2 commits into from
Nov 14, 2022

Conversation

rajyan
Copy link
Contributor

@rajyan rajyan commented Nov 13, 2022

Issue 8212 was closed in #1950 but the test added wasn't correct.
And, this revert commit a1605df made phpstan/phpstan#8212 not work again.

ConditionalExpressions should work in global scope too, so fixed by handling canAnyVariableExist in getVariableType

@ondrejmirtes ondrejmirtes merged commit 95266fd into phpstan:1.9.x Nov 14, 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
Development

Successfully merging this pull request may close these issues.

2 participants