Skip to content

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
@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

Development

Successfully merging this pull request may close these issues.

Spread Operator in Array Expression should not always yield non-empty-array Spreading a list into a new array results in a non-empty-list

3 participants