Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Narrow object return type v2#7586

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Draft
Orest-Divintari wants to merge13 commits intorectorphp:main
base:main
Choose a base branch
Loading
fromOrest-Divintari:orest/narrow-object-return-type-v2

Conversation

@Orest-Divintari
Copy link
Contributor

In addition to thispr , this PR extends the rule to narrow return types fromany supertype (interfaces, abstract classes, and parent classes) to the actual concrete class being returned.

Before this change:

  • Only narrowed when parent method hadobject type or no parent method existed

After this change:

  • Narrows interfaces, abstract classes, parent classes to the actual returned class

@samsonasiksamsonasik marked this pull request as draftOctober 27, 2025 02:58
@samsonasik
Copy link
Member

Let's mark this draft so wait for PR:

Orest-Divintari reacted with thumbs up emoji

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

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

2 participants

@Orest-Divintari@samsonasik

[8]ページ先頭

©2009-2025 Movatter.jp