Replaced {{mediaType}} with {{{mediaType}} to keep the original media

This commit is contained in:
wing328
2016-05-20 17:48:47 +08:00
parent 6c71dc3d18
commit c6f03806df
41 changed files with 92 additions and 87 deletions

View File

@@ -256,7 +256,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('integer', 'int', 'void', 'number', 'object', 'double', 'float', 'byte', 'DateTime', 'string', 'mixed', 'boolean', 'bool'))) {
settype($data, $class);
return $data;
} elseif ($class === '\SplFileObject') {