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

array_change_key_case() is not reported to return different case keys #10960

Open
JeroenBakker opened this issue May 2, 2024 · 0 comments
Open
Labels
Milestone

Comments

@JeroenBakker
Copy link

Hi there, the title pretty much says it all, array_change_key_case() returns an array with the key cases changed, but phpstan complains that the keys aren't changed.

Reproduction: https://phpstan.org/r/ee95a2da-fe4c-44b6-8f06-369ecb271717
Proof that keys do change case: https://3v4l.org/TMciS

I'm working on a PR for phpstan/phpstan-src, but it might be a little while until I have the time to finish it.

@ondrejmirtes ondrejmirtes added this to the Easy fixes milestone May 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants