Skip to content

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.

3 participants