Skip to content
Navigation Menu
Sign in
Appearance settings
Platform
AI CODE CREATION
GitHub Copilot
Write better code with AI
GitHub Copilot app
Direct agents from issue to merge
MCP Registry
Integrate external tools
DEVELOPER WORKFLOWS
Actions
Automate any workflow
Codespaces
Instant dev environments
Issues
Plan and track work
Code Review
Manage code changes
Code Quality
Enforce quality at merge
APPLICATION SECURITY
GitHub Advanced Security
Find and fix vulnerabilities
Code security
Secure your code as you build
Secret protection
Stop leaks before they start
EXPLORE
Why GitHub
Documentation
Blog
Changelog
Marketplace
View all features
Solutions
BY COMPANY SIZE
Enterprises
Small and medium teams
Startups
Nonprofits
BY USE CASE
App Modernization
DevSecOps
DevOps
CI/CD
View all use cases
BY INDUSTRY
Healthcare
Financial services
Manufacturing
Government
View all industries
View all solutions
Resources
EXPLORE BY TOPIC
AI
Software Development
DevOps
Security
View all topics
EXPLORE BY TYPE
Customer stories
Events & webinars
Ebooks & reports
Business insights
GitHub Skills
SUPPORT & SERVICES
Documentation
Customer support
Community forum
Trust center
Partners
View all resources
Open Source
COMMUNITY
GitHub Sponsors
Fund open source developers
PROGRAMS
Security Lab
Maintainer Community
Accelerator
GitHub Stars
Archive Program
REPOSITORIES
Topics
Trending
Collections
Enterprise
ENTERPRISE SOLUTIONS
Enterprise platform
AI-powered developer platform
AVAILABLE ADD-ONS
GitHub Advanced Security
Enterprise-grade security features
Copilot for Business
Enterprise-grade AI features
Premium Support
Enterprise-grade 24/7 support
Pricing
Type
/
to search
Sign in
Sign up
Appearance settings
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 }}
Uh oh!
There was an error while loading.
Please reload this page
.
phpstan
/
phpstan-src
Public
Notifications
You must be signed in to change notification settings
Fork
586
Star
397
Code
Pull requests
173
Actions
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Security and quality
Insights
Resolve self/parent/static in Closure::bind() scope
- #4081
#4081
Open
zonuexe
wants to merge 6 commits into
phpstan:2.2.x
phpstan/phpstan-src:2.2.x
from
zonuexe:fix/bind-class-scope
zonuexe/phpstan-src:fix/bind-class-scope
Copy head branch name to clipboard
Conversation
Commits
6
(6)
Checks
Files changed
Open
Resolve self/parent/static in Closure::bind() scope
#4081
zonuexe
wants to merge 6 commits into
phpstan:2.2.x
phpstan/phpstan-src:2.2.x
from
zonuexe:fix/bind-class-scope
zonuexe/phpstan-src:fix/bind-class-scope
Copy head branch name to clipboard
Commits
Commits on Aug 9, 2026
Resolve self/parent/static class constants inside Closure::bind() scope
Show description for bdb256b
zonuexe
committed
bdb256b
View commit details
Copy full SHA for bdb256b
Browse repository at this point
Make ClassConstantRule aware of Closure::bind() scope
Show description for 5564fdc
zonuexe
committed
5564fdc
View commit details
Copy full SHA for 5564fdc
Browse repository at this point
Resolve self/parent/static in Closure::bind() scope for static calls, properties and instantiation
Show description for 5c4cac0
zonuexe
committed
5c4cac0
View commit details
Copy full SHA for 5c4cac0
Browse repository at this point
Commits on Aug 10, 2026
Support named arguments in the Closure::bind() scope binding
Show description for ffbfec8
zonuexe
committed
ffbfec8
View commit details
Copy full SHA for ffbfec8
Browse repository at this point
Delegate the bind-scope resolution in MutatingScope to ClosureBindScopeResolver
Show description for 5444d4a
zonuexe
committed
5444d4a
View commit details
Copy full SHA for 5444d4a
Browse repository at this point
Enter the Closure::bind() scope for named arguments in any order
Show description for c469c18
zonuexe
committed
c469c18
View commit details
Copy full SHA for c469c18
Browse repository at this point
You can’t perform that action at this time.