phpstan / phpdoc-parser

Next-gen phpDoc parser with support for intersection types and generics
MIT License
1.36k stars 61 forks source link

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

Closed mvorisek closed 2 months ago

mvorisek commented 1 year ago

see https://github.com/phpstan/phpstan-src/commit/30f60c18f5efa9e7d5a5495c90f901178cf17a57#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 https://github.com/phpstan/phpstan-src/pull/2358

mvorisek commented 2 months ago

It was fixed in the meantime.

github-actions[bot] commented 1 month ago

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.