Codeception / module-rest

REST module for Codeception
MIT License
53 stars 27 forks source link

Add JSON_PRESERVE_ZERO_FRACTION flag #63

Closed RusiPapazov closed 2 years ago

RusiPapazov commented 2 years ago

The native json_encode method trims trailing zeros after the decimal point, which can be a problem.

For example typed properties in PHP7.4 they can expect float (e.g. product price), but receive int, which triggers a runtime error.

DavertMik commented 2 years ago

Thanks, I launched tests

bozhidargyurov commented 2 years ago

@DavertMik Do you have any plans about releasing this bugfix?

Naktibalda commented 2 years ago

Released as 1.3.2