Closed TimWolla closed 1 year ago
If the JSON_THROW_ON_ERROR flag is explicitly given, jsonEncode() violates its contract to throw InvalidArgumentException if it is unable to encode the input as JSON.
JSON_THROW_ON_ERROR
jsonEncode()
InvalidArgumentException
Description
If the
JSON_THROW_ON_ERROR
flag is explicitly given,jsonEncode()
violates its contract to throwInvalidArgumentException
if it is unable to encode the input as JSON.