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
{{ message }}
Repository navigation
Commit a81d289
Browse filesBrowse the repository at this point in the historyBrowse files
Cover Closure::bind() scopes around nested classes, arguments and closure-this
- A class or function declared inside a bound closure has its own
self/parent/static (rule data and a walk-trace fixture).
- The bind scope applies to the closure body only: the arguments of the call
keep resolving against the enclosing class (regression test for
phpstan/phpstan#6319, reproducer from the issue's
playground sample).
- A closure passed to a @param-closure-this parameter is analysed as scoped
to that class, so self:: names it even outside any class.
- More parser-visitor snippets with self/parent/static names inside
Closure::bind() calls, which the visitor leaves alone.
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
0 commit comments