Deserialize httpHeader.

See #1354.

Regenerated php-petstore sample.
This commit is contained in:
Arne Jørgensen
2015-10-08 11:25:43 +02:00
parent 733e19c113
commit 3bd4502bbf
5 changed files with 88 additions and 49 deletions

View File

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