fix double in php client response

This commit is contained in:
William Cheng 2015-04-12 23:06:07 +08:00
parent 7f84deaf30
commit 13d513f02b
2 changed files with 2 additions and 2 deletions

View File

@ -282,7 +282,7 @@ class APIClient {
$deserialized = $values;
} elseif ($class == 'DateTime') {
$deserialized = new \DateTime($data);
} elseif (in_array($class, array('string', 'int', 'float', 'bool'))) {
} elseif (in_array($class, array('string', 'int', 'float', 'double', 'bool'))) {
settype($data, $class);
$deserialized = $data;
} else {

View File

@ -282,7 +282,7 @@ class APIClient {
$deserialized = $values;
} elseif ($class == 'DateTime') {
$deserialized = new \DateTime($data);
} elseif (in_array($class, array('string', 'int', 'float', 'bool'))) {
} elseif (in_array($class, array('string', 'int', 'float', 'double', 'bool'))) {
settype($data, $class);
$deserialized = $data;
} else {