Skip to content

Closure::bind() scope binding improvements#4081

Draft
zonuexe wants to merge 4 commits intophpstan:2.1.xfrom
zonuexe:fix/bind-class-scope
Draft

Closure::bind() scope binding improvements#4081
zonuexe wants to merge 4 commits intophpstan:2.1.xfrom
zonuexe:fix/bind-class-scope

Conversation

@zonuexe
Copy link
Contributor

@zonuexe zonuexe commented Jul 4, 2025

WIP (This PR still doesn't work as intended)

  • Add bound scope to Name node (Closure::bind())
  • Add bound scope to Name node (Closure::bindTo())
  • Support const fetch
  • Support static method call
  • Fix ClassConstantRule
  • Fix StaticMethodCallCheck
  • Fix InstantiationRule

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.

1 participant