Closed jasonhebert closed 1 year ago
PR looks good, I need to figure out a way to enable our CLA bot on this repo. I'll get back to you in a bit.
As this is a Square hosted project, individual contributors are required to sign the CLA in order to contribute. Once you have signed, we'll be able to move forward with the PR.
CLA signed and submitted! Thanks...
If a JSON payload contains a property that can be
array|null
the current functionality breaks when attempting to pass anull
value toarray_map
inJson.php
line 76.A
null
check has been added so that if the value from the JSON payload isnull
it returns thenull
value, otherwise it processes the value as normal.In the example below an error would have previously been thrown: INPUT:
CLASS:
ERROR:
Fatal error: Uncaught TypeError: array_map(): Argument #2 ($array) must be of type array, null given