Commit afa72add by Qiang Xue

proper handling of JsonSerializable.

parent 7fa18c54
......@@ -82,7 +82,7 @@ class BaseJson
protected static function processData($data, &$expressions, $expPrefix)
{
if ($data instanceof \JsonSerializable) {
return $data;
$data = $data->jsonSerialize();
}
if (is_object($data)) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment