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
Resolve call_user_func_array callback to use proper parameter types for by-ref variables
Instead of blindly invalidating by-ref variables in array arguments to mixed,
resolve the callback passed to call_user_func_array and use the callback's
parameter types. This makes call_user_func_array([$this, 'method'], [&$var, ...])
equivalent to $this->method($var, ...) for type inference.
- Add ArgumentsNormalizer::reorderCallUserFuncArrayArguments() to unpack
array literal arguments into synthetic function call args
- Add return type resolution for call_user_func_array in FuncCallHandler
- Use callback parameter types for by-ref variables in processArgs
- Fall back to mixed invalidation when callback cannot be resolved
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
0 commit comments