Skip to content

Conversation

@staabm
Copy link
Contributor

@staabm staabm commented Dec 21, 2025

prevents duplicate work, as MethodCalls will re-calculated one less time

Copy link
Member

@ondrejmirtes ondrejmirtes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  1. Could be in popInFunctionCall too
  2. BUT: $this->inFunctionCallsStack is used in resolveType() in } elseif ($node instanceof Expr\Closure || $node instanceof Expr\ArrowFunction) { so that could be a problem (the problem should be reproduced in a test first).

@ondrejmirtes
Copy link
Member

Issue bot points out an example where this breaks https://phpstan.org/r/dfc26675-234f-47b3-8d0f-dc64b66ef5aa

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants