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 a dynamic return type for number_format #553

Merged
merged 1 commit into from
Jun 8, 2021

Conversation

BackEndTea
Copy link
Contributor

If your locale can change, casting a float to string may be unsafe for making numeric strings (before PHP 8).

In that case number_format can be used with specific params to get a numeric string.

If your locale can change, casting to float
may be unsafe for making numeric strings (before php 8).

In that case number_format can be used with
specific params to get a numeric string
@ondrejmirtes ondrejmirtes merged commit 09e771b into phpstan:master Jun 8, 2021
@ondrejmirtes
Copy link
Member

Perfect, thank you!

@BackEndTea
Copy link
Contributor Author

Wow that was fast, thanks for the merge @ondrejmirtes

@BackEndTea BackEndTea deleted the dynamic-number-format branch June 8, 2021 08:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants