mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-12-09 23:26:09 +00:00
[PHP-NG] allow 'object' type in serializer (#17118)
This commit is contained in:
@@ -427,10 +427,7 @@ class ObjectSerializer
|
||||
return $deserialized;
|
||||
}
|
||||
|
||||
if ($class === 'object') {
|
||||
settype($data, 'array');
|
||||
return $data;
|
||||
} elseif ($class === 'mixed') {
|
||||
if ($class === 'mixed') {
|
||||
settype($data, gettype($data));
|
||||
return $data;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user