diff --git a/src/Client.php b/src/Client.php index 755737310e..d95602be75 100644 --- a/src/Client.php +++ b/src/Client.php @@ -685,7 +685,7 @@ class Client $obj = new stdClass(); foreach ($dict as $k => $v) { - $obj->{$k} = $v; + $obj->{$k} = is_array($v) ? $this->toObject($v) : $v; } return $obj;