Skip to content

[type-declaration] Rename NarrowTooWideReturnType to NarrowWideUnionReturnTypeRector#7614

Merged
TomasVotruba merged 3 commits intomainfrom
tv-rename-narrow
Nov 6, 2025
Merged

[type-declaration] Rename NarrowTooWideReturnType to NarrowWideUnionReturnTypeRector#7614
TomasVotruba merged 3 commits intomainfrom
tv-rename-narrow

Conversation

@TomasVotruba
Copy link
Copy Markdown
Member

@TomasVotruba TomasVotruba commented Nov 6, 2025

The original name was unclear, what exactly it does. Especially in contrast to recently added similar NarrowObjectReturnTypeRector rule

Ref #7575 (comment)

@TomasVotruba TomasVotruba changed the title tv rename narrow [type-declaration] Rename NarrowTooWideReturnType to NarrowWideUnionReturnTypeRector Nov 6, 2025
Comment thread rules/DeadCode/Rector/FunctionLike/NarrowWideUnionReturnTypeRector.php Outdated
@TomasVotruba TomasVotruba merged commit 9ccfc51 into main Nov 6, 2025
53 checks passed
@TomasVotruba TomasVotruba deleted the tv-rename-narrow branch November 6, 2025 16:22
@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 12, 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.

2 participants