Skip to content

Avoid false positif in_array always true #4073

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

Open
wants to merge 3 commits into
base: 2.1.x
Choose a base branch
from

Conversation

VincentLanglet
Copy link
Contributor

@VincentLanglet VincentLanglet commented Jun 26, 2025

@VincentLanglet VincentLanglet marked this pull request as ready for review June 26, 2025 10:46
@phpstan-bot
Copy link
Collaborator

This pull request has been marked as ready for review.

@VincentLanglet
Copy link
Contributor Author

I don't think it's enough to close #4073 @ondrejmirtes but at least I hope it will help.

Seems like this fix:

  • Avoid false positive
  • Do not produce any tested regression (and even if there is, I think it's better for PHPStan to have false-negative rather than false-positive)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants