You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Extend subtype matching to IntegerRangeType guards and restore bar() test
The guard type check was too narrow with just `instanceof UnionType` —
it missed IntegerRangeType guards like `int<1, max>` used for count-based
array narrowing via intermediate variables. Extending to also allow
IntegerRangeType fixes the bar() case in bug-4090 where `$count = count($a)`
followed by `$count === 1` should narrow the array to non-empty.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
0 commit comments