Skip to content

[TypeDeclaration] Skip no key generic object return on NarrowObjectReturnTypeRector#7623

Merged
samsonasik merged 1 commit intomainfrom
skip-no-key
Nov 13, 2025
Merged

[TypeDeclaration] Skip no key generic object return on NarrowObjectReturnTypeRector#7623
samsonasik merged 1 commit intomainfrom
skip-no-key

Conversation

@samsonasik
Copy link
Copy Markdown
Member

Fixes rectorphp/rector#9489

@staabm check only instanceof PHPStan\Type\Generic\GenericObjectType seems can handle it.

@samsonasik
Copy link
Copy Markdown
Member Author

Fixed 🎉 /cc @staabm

@samsonasik
Copy link
Copy Markdown
Member Author

All checks have passed 🎉 @TomasVotruba I am merging it to have faster feedback to test ;)

@samsonasik samsonasik enabled auto-merge (squash) November 13, 2025 11:46
@samsonasik samsonasik merged commit 157504c into main Nov 13, 2025
54 checks passed
@samsonasik samsonasik deleted the skip-no-key branch November 13, 2025 11:47
@staabm
Copy link
Copy Markdown
Contributor

staabm commented Nov 13, 2025

looks good - thank you!

@github-actions
Copy link
Copy Markdown
Contributor

This pull request has been automatically locked because it has been closed for 150 days. Please open a new PR if you want to continue the work.

@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Apr 19, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Incorrect behavior of NarrowObjectReturnTypeRector

2 participants