Skip to content

Declare explicit union return types for returned union params - #408

Merged
TomasVotruba merged 1 commit into
mainfrom
tv-array-shape-returns
Oct 16, 2026
Merged

TomasVotruba merged 1 commit into
mainfrom
tv-array-shape-returns

Conversation

@TomasVotruba

Copy link
Copy Markdown
Member

Satisfy the NarrowReturnToUnionParamRule added in symplify/phpstan-rules 14.19.x by declaring explicit union return types on the two helper methods that return their passed union node.

@TomasVotruba
TomasVotruba merged commit 8ef6145 into main Oct 16, 2026
9 checks passed
@TomasVotruba
TomasVotruba deleted the tv-array-shape-returns branch October 16, 2026 19:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants