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

Printer must print float as float and never as int #194

Open
mvorisek opened this issue May 18, 2023 · 0 comments
Open

Printer must print float as float and never as int #194

mvorisek opened this issue May 18, 2023 · 0 comments

Comments

@mvorisek
Copy link
Contributor

mvorisek commented May 18, 2023

see phpstan/phpstan-src@30f60c1#r113903510 for repro and the commit itself for usage

https://github.com/phpstan/phpstan-src/blob/f2fb222f7e31c6d50e6258b13a73126cccb16364/src/Type/Constant/ConstantFloatType.php#L48 code should be (re)used

related with phpstan/phpstan-src#2358

@mvorisek mvorisek changed the title Printer print float as float and never as int Printer must print float as float and never as int May 18, 2023
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

No branches or pull requests

1 participant