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

Cover non-empty-array in array_merge #581

Merged
merged 5 commits into from
Jul 19, 2021

Conversation

staabm
Copy link
Contributor

@staabm staabm commented Jul 19, 2021

@staabm staabm marked this pull request as ready for review July 19, 2021 14:24
Comment on lines +48 to +52
if (!$argType->isIterableAtLeastOnce()->yes()) {
continue;
}

$nonEmpty = true;
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this doesn't make much sense to me in this case, but phpcbf enforced the early-continue construct

@staabm
Copy link
Contributor Author

staabm commented Jul 19, 2021

ready to merge

@ondrejmirtes ondrejmirtes merged commit 0be769d into phpstan:master Jul 19, 2021
@ondrejmirtes
Copy link
Member

Thank you.

@staabm staabm deleted the non-empty-array-merge branch July 19, 2021 16:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants