Skip to content

Fix Array_ expr type resolving with unpacked constant array items#1619

Merged
ondrejmirtes merged 5 commits into
phpstan:1.8.xfrom
herndlm:fix-7776
Aug 13, 2022
Merged

Fix Array_ expr type resolving with unpacked constant array items#1619
ondrejmirtes merged 5 commits into
phpstan:1.8.xfrom
herndlm:fix-7776

Conversation

@herndlm

@herndlm herndlm commented Aug 13, 2022

Copy link
Copy Markdown
Contributor

Closes phpstan/phpstan#7776

is basically the constant array counterpart to #1586

Comment thread tests/PHPStan/Analyser/data/bug-7776.php Outdated
@herndlm
herndlm marked this pull request as ready for review August 13, 2022 13:39
@ondrejmirtes
ondrejmirtes merged commit 4b6d964 into phpstan:1.8.x Aug 13, 2022
@herndlm
herndlm deleted the fix-7776 branch August 14, 2022 06:54
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.

Optional array keys transform to non optional when spreading

3 participants