phpstan-src
phpstan-src copied to clipboard
Avoid false positif in_array always true
trafficstars
Closes https://github.com/phpstan/phpstan/issues/13151 Closes https://github.com/phpstan/phpstan/issues/8818 Closes https://github.com/phpstan/phpstan/issues/12755 Closes https://github.com/phpstan/phpstan/issues/12412
This pull request has been marked as ready for review.
I don't think it's enough to close https://github.com/phpstan/phpstan-src/pull/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)
Thank you!