Closed RusiPapazov closed 2 years ago
The native json_encode method trims trailing zeros after the decimal point, which can be a problem.
json_encode
For example typed properties in PHP7.4 they can expect float (e.g. product price), but receive int, which triggers a runtime error.
Thanks, I launched tests
@DavertMik Do you have any plans about releasing this bugfix?
Released as 1.3.2
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.