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

Spreading of general arrays should not lead to a non-empty-array #818

Merged
merged 2 commits into from
Dec 1, 2021
Merged

Spreading of general arrays should not lead to a non-empty-array #818

merged 2 commits into from
Dec 1, 2021

Conversation

herndlm
Copy link
Contributor

@herndlm herndlm commented Dec 1, 2021

Closes phpstan/phpstan#5287
Closes phpstan/phpstan#6109

It looked like optional keys were not handled correctly in the array builder in case degradeToGeneralArray is set, but I'm not a 100% sure if I understood it correctly and hence this really is the right fix.

@herndlm herndlm marked this pull request as ready for review December 1, 2021 09:28
@herndlm herndlm marked this pull request as draft December 1, 2021 09:57
@herndlm herndlm marked this pull request as ready for review December 1, 2021 10:01
src/Analyser/MutatingScope.php Outdated Show resolved Hide resolved
@ondrejmirtes ondrejmirtes merged commit 0938424 into phpstan:master Dec 1, 2021
@ondrejmirtes
Copy link
Member

Thank you!

@bcremer
Copy link

bcremer commented Dec 1, 2021

Thanks @herndlm 👍

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