Allow any data type for custom data

This commit is contained in:
Joshua Chamberlain 2014-09-08 12:11:04 -07:00
parent 7f2fa66030
commit f2af6df726

View File

@ -314,15 +314,7 @@ class MessageBuilder
public function addCustomData($customName, $data)
{
if (is_array($data)) {
$jsonArray = json_encode($data);
$this->message['v:' . $customName] = $jsonArray;
return $this->message['v:' . $customName];
} else {
throw new InvalidParameter(INVALID_PARAMETER_NON_ARRAY);
}
$this->message['v:' . $customName] = json_encode($data);
}
public function addCustomParameter($parameterName, $data)