Skip to content

Improve Vsprintf inference #3496

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Sep 26, 2024
Merged

Conversation

VincentLanglet
Copy link
Contributor

The same logic done for sprintf could be done for vsprintf.
Instead of a foreach on every values, I just need to check the iterableValueType.

I refacto to a method allValuesSatisfies, because I have in mind to re-use this method to check if every values are lowercase-string.

cc @staabm if you wanna review, since you seemed to work multiple times on this dynamicReturnTypeExtension.

@ondrejmirtes ondrejmirtes merged commit eb78fe3 into phpstan:1.12.x Sep 26, 2024
481 of 499 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.

None yet

3 participants