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

in_array with $strict=true does not seem to cope well with arrays where all values are known #5912

Closed
Seldaek opened this issue Nov 3, 2021 · 4 comments

Comments

@Seldaek
Copy link
Contributor

Seldaek commented Nov 3, 2021

Bug report

Code snippet that reproduces the problem

https://phpstan.org/r/409aaaa5-7094-4f16-aa5e-695e21a1a94b

Expected output

No error

@staabm
Copy link
Contributor

staabm commented Nov 3, 2021

in_array is pretty complicated and there are a lot of open issues regarding it.

This is likely a duplicate of one of these

@Seldaek
Copy link
Contributor Author

Seldaek commented Nov 3, 2021

Ok could well be, sorry for the noise if that is the case.

@Seldaek
Copy link
Contributor Author

Seldaek commented Nov 3, 2021

OK indeed looks like duplicate of #5759 - closing then.

@Seldaek Seldaek closed this as completed Nov 3, 2021
@github-actions
Copy link

github-actions bot commented Dec 5, 2021

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Dec 5, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants