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(int, string[], true) not reported as always false in some cases #6959

Closed
janedbal opened this issue Mar 31, 2022 · 3 comments
Closed

Comments

@janedbal
Copy link
Contributor

Feature request

See https://phpstan.org/r/e83d99af-c92f-4d8d-9677-7d9caf7c9ee1

It works when strings are inplaced (in_array(1, ['a'], true)).

@ondrejmirtes
Copy link
Member

Fixed: phpstan/phpstan-src#2432

@janedbal
Copy link
Contributor Author

janedbal commented Jun 6, 2023

Thanks!

@github-actions
Copy link

github-actions bot commented Jul 8, 2023

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 Jul 8, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants