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 for: Optional array key is not recognized with !empty #569

Merged
merged 2 commits into from
Jul 2, 2021

Conversation

ArtemGoutsoul
Copy link
Contributor

Fix for: phpstan/phpstan#3297

Seems like array key handling was implemented only for isset()

I factored it out so that it would be applied also for !empty(), added a test (used example from the issue).

@ondrejmirtes ondrejmirtes merged commit d675602 into phpstan:master Jul 2, 2021
@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