Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bug #54146 [HttpClient] Preserve float in JsonMockResponse (Jibbarth)
This PR was merged into the 6.4 branch. Discussion ---------- [HttpClient] Preserve float in JsonMockResponse | Q | A | ------------- | --- | Branch? | 6.4 | Bug fix? | yes | New feature? | no <!-- please update src/**/CHANGELOG.md files --> | Deprecations? | no <!-- please update UPGRADE-*.md and src/**/CHANGELOG.md files --> | Issues | Fix #... <!-- prefix each issue number with "Fix #", no need to create an issue if none exists, explain below instead --> | License | MIT Hello, I am mocking an API Response that can send float in values : ``` { "values": 1.0 } ``` Converting this to a php array and giving it to JsonMockResponse return me an int after, because the missing json_encode flag to keep zero fraction, and leds to issue when I want to deserialize it into a float property. In my mind it's a bugfix, but if it's considered as a new feature, I can target 7.1. Commits ------- 4d120b8 [HttpClient] Preserve float in JsonMockResponse
- Loading branch information