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
.
rectorphp
/
rector-src
Public
Uh oh!
There was an error while loading.
Please reload this page
.
Notifications
You must be signed in to change notification settings
Fork
444
Star
136
Code
Pull requests
7
Actions
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Security and quality
Insights
Narrow object return type v2
- #7586
#7586
Closed
Orest-Divintari
wants to merge 13 commits into
rectorphp:main
rectorphp/rector-src:main
from
Orest-Divintari:orest/narrow-object-return-type-v2
Orest-Divintari/rector-src:orest/narrow-object-return-type-v2
Copy head branch name to clipboard
Conversation
Commits
13
(13)
Checks
Files changed
Closed
Narrow object return type v2
#7586
Orest-Divintari
wants to merge 13 commits into
rectorphp:main
rectorphp/rector-src:main
from
Orest-Divintari:orest/narrow-object-return-type-v2
Orest-Divintari/rector-src:orest/narrow-object-return-type-v2
Copy head branch name to clipboard
Commits
Commits on Oct 25, 2025
Narrow object return type
Show description for 16c86a5
Orest-Divintari
committed
16c86a5
View commit details
Copy full SHA for 16c86a5
Browse repository at this point
replace override attribute
Orest-Divintari
committed
d8e89a4
View commit details
Copy full SHA for d8e89a4
Browse repository at this point
skip when parent has specific class return type
Orest-Divintari
committed
2c56cbb
View commit details
Copy full SHA for 2c56cbb
Browse repository at this point
apply feedback
Orest-Divintari
committed
16537f7
View commit details
Copy full SHA for 16537f7
Browse repository at this point
skip non final classes
Orest-Divintari
committed
b8fde1d
View commit details
Copy full SHA for b8fde1d
Browse repository at this point
Commits on Oct 26, 2025
scope return and allow final methods
Orest-Divintari
committed
a0f9b9b
View commit details
Copy full SHA for a0f9b9b
Browse repository at this point
Handle generics using AST instead of PHPStan
Orest-Divintari
committed
667b6e1
View commit details
Copy full SHA for 667b6e1
Browse repository at this point
remove dummy classes
Orest-Divintari
committed
a78090e
View commit details
Copy full SHA for a78090e
Browse repository at this point
use isFinalByKeyword
Orest-Divintari
committed
aed5082
View commit details
Copy full SHA for aed5082
Browse repository at this point
move to source
Orest-Divintari
committed
aebdd2b
View commit details
Copy full SHA for aebdd2b
Browse repository at this point
update description
Orest-Divintari
committed
2e0fa34
View commit details
Copy full SHA for 2e0fa34
Browse repository at this point
use isFinalByKeyword
Orest-Divintari
committed
b2e2d0e
View commit details
Copy full SHA for b2e2d0e
Browse repository at this point
Narrow object return type
Orest-Divintari
committed
a84d702
View commit details
Copy full SHA for a84d702
Browse repository at this point
You can’t perform that action at this time.