Skip to content

Fix sprintf dynamic return type#3640

Merged
ondrejmirtes merged 2 commits intophpstan:1.12.xfrom
VincentLanglet:fix/sprintf
Nov 19, 2024
Merged

Fix sprintf dynamic return type#3640
ondrejmirtes merged 2 commits intophpstan:1.12.xfrom
VincentLanglet:fix/sprintf

Conversation

@VincentLanglet
Copy link
Copy Markdown
Contributor

}
}
$singlePlaceholderEarlyReturn = TypeCombinator::union(...$result);
$singlePlaceholderEarlyReturn[] = TypeCombinator::union(...$result);
Copy link
Copy Markdown
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
Copy Markdown
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
@ondrejmirtes
Copy link
Copy Markdown
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