remove unnecessary changes for php codegen

This commit is contained in:
wing328
2016-08-31 16:38:30 +08:00
parent 4ea4488212
commit da45cb7ff5
12 changed files with 47 additions and 14 deletions

View File

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