Skip to content
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

Add better types for the sprintf-like arguments #52

Merged
merged 1 commit into from
Jun 2, 2023

Conversation

stof
Copy link
Member

@stof stof commented Jun 2, 2023

float|int|string is what Psalm allows for sprintf at level 1.
phpstan at level 9 allows bool|float|int|string|null for those

@stof
Copy link
Member Author

stof commented Jun 2, 2023

This will have an impact on users of this package if they were passing another type than those while using static analysis (assuming that they were not already getting a TypeError in the sprintf call)

@greg0ire greg0ire added this to the v1.1.1 milestone Jun 2, 2023
@stof stof merged commit 9110bfe into doctrine:master Jun 2, 2023
@stof stof deleted the better_types branch June 2, 2023 19:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants