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

fix: False match.unhandled on array with multiple booleans

Open ping-yee opened this issue 7 months ago • 1 comments

Fix https://github.com/phpstan/phpstan/issues/13029

ping-yee avatar May 27 '25 15:05 ping-yee

If you ignore the error for every remaining array, I assume you won't have an error if you miss an "array" case

Like

  • matching array(int) with only some constant-int
  • matching array(bool, bool) with only 3 cases (instead of four)

Can you add tests to prove it works ?

VincentLanglet avatar May 30 '25 07:05 VincentLanglet