Skip to content

Conversation

VincentLanglet
Copy link
Contributor

}
}
$singlePlaceholderEarlyReturn = TypeCombinator::union(...$result);
$singlePlaceholderEarlyReturn[] = TypeCombinator::union(...$result);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would be better to do one union at the end instead of these intermediate ones.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Indeed ; fixed.

@ondrejmirtes ondrejmirtes merged commit cb9be91 into phpstan:1.12.x Nov 19, 2024
452 checks passed
@ondrejmirtes
Copy link
Member

Thank you.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants