update reserved words for php and ruby to include local variable names

in api methods
This commit is contained in:
wing328
2016-01-06 22:53:34 +08:00
parent 19ff7dc19c
commit 9ab27cd848
5 changed files with 24 additions and 15 deletions

View File

@@ -226,7 +226,7 @@ class ObjectSerializer
$deserialized = $values;
} elseif ($class === '\DateTime') {
$deserialized = new \DateTime($data);
} elseif (in_array($class, array('void', 'bool', 'string', 'double', 'byte', 'mixed', 'integer', 'float', 'int', 'DateTime', 'number', 'boolean', 'object'))) {
} elseif (in_array($class, array('integer', 'int', 'void', 'number', 'object', 'double', 'float', 'byte', 'DateTime', 'string', 'mixed', 'boolean', 'bool'))) {
settype($data, $class);
$deserialized = $data;
} elseif ($class === '\SplFileObject') {