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 key always exists false positive with composite keys #143

Open
InvisibleSmiley opened this issue Nov 23, 2021 · 0 comments
Open

Array key always exists false positive with composite keys #143

InvisibleSmiley opened this issue Nov 23, 2021 · 0 comments

Comments

@InvisibleSmiley
Copy link

https://phpstan.org/r/50a1171b-7243-4e7d-a9d4-9d0b21cc1d02

"Call to function array_key_exists() with non-empty-string and array will always evaluate to true."

I disabled the following error message using checkMissingIterableValueType: false:
"Function foo() has parameter $arr with no value type specified in iterable type array."
Adding a typehint for for the array makes the other error go away, but that's not the point here.

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

No branches or pull requests

1 participant