phpstan-src
phpstan-src copied to clipboard
fix: False match.unhandled on array with multiple booleans
Fix https://github.com/phpstan/phpstan/issues/13029
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 ?