[PHP] Regenerate petstore samples

This commit is contained in:
Arne Jørgensen
2016-08-05 11:25:49 +02:00
parent 03c7e3ea0b
commit 4008054209
7 changed files with 45 additions and 31 deletions

View File

@@ -264,7 +264,7 @@ class ObjectSerializer
} else {
return null;
}
} 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);
return $data;
} elseif ($class === '\SplFileObject') {