phpstan-src icon indicating copy to clipboard operation
phpstan-src copied to clipboard

Avoid false positif in_array always true

Open VincentLanglet opened this issue 4 months ago • 2 comments
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

VincentLanglet avatar Jun 26 '25 09:06 VincentLanglet

This pull request has been marked as ready for review.

phpstan-bot avatar Jun 26 '25 10:06 phpstan-bot

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)

VincentLanglet avatar Jun 26 '25 11:06 VincentLanglet

Thank you!

ondrejmirtes avatar Jul 17 '25 11:07 ondrejmirtes