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
Use callCallbackImmediately() instead of hardcoded ArrayMapArgVisitor check
Instead of hardcoding ArrayMapArgVisitor in MutatingScope to determine if
a closure is immediately invoked, set the ImmediatelyInvokedClosureVisitor
attribute in NodeScopeResolver based on callCallbackImmediately(). This
relies on PHPStan's existing mechanism for determining immediate vs later
invocation, which respects @param-immediately-invoked-callable and
@param-later-invoked-callable PHPDoc tags, and defaults to immediately
invoked for function calls and later invoked for method calls.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
0 commit comments