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
Move FuncCall type update from resolveType() to filterBySpecifiedTypes()
Address review feedback: instead of re-calculating FuncCall types at
type-resolving time, update stored expression types during AST
evaluation when their arguments are narrowed.
In filterBySpecifiedTypes(), after processing type specifications and
conditional expressions, detect FuncCall entries whose arguments' types
actually changed. For each, temporarily remove the stored type, compute
the dynamic type from the narrowed arguments, then store the
intersection. This preserves narrowing from both sources: conditions on
the function result (e.g. count($arr) === 3) and conditions on the
arguments (e.g. $arr !== []).
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
0 commit comments