Skip to content

Fix array_push / array_unshift with ConstantArrayType arguments #1232

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

Merged
merged 1 commit into from
Apr 19, 2022

Conversation

herndlm
Copy link
Contributor

@herndlm herndlm commented Apr 19, 2022

Closes phpstan/phpstan#5783

moar special handling for my friend and nemesis the constant array type.. Problem was that getIterableValueType returns the union of all values which will be e.g. Foo for Foo|Foo.

@herndlm herndlm changed the base branch from 1.6.x to 1.5.x April 19, 2022 13:38
@ondrejmirtes ondrejmirtes merged commit 39e8286 into phpstan:1.5.x Apr 19, 2022
@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
Development

Successfully merging this pull request may close these issues.

Incorrect array shape using splat (...) in array_push
2 participants