mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-07-03 14:10:56 +00:00
[PHP-NG] allow 'object' type in serializer (#17118)
This commit is contained in:
parent
eabd9401bf
commit
0098d56a6a
@ -417,10 +417,7 @@ class ObjectSerializer
|
|||||||
return $deserialized;
|
return $deserialized;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($class === 'object') {
|
if ($class === 'mixed') {
|
||||||
settype($data, 'array');
|
|
||||||
return $data;
|
|
||||||
} elseif ($class === 'mixed') {
|
|
||||||
settype($data, gettype($data));
|
settype($data, gettype($data));
|
||||||
return $data;
|
return $data;
|
||||||
}
|
}
|
||||||
|
@ -427,10 +427,7 @@ class ObjectSerializer
|
|||||||
return $deserialized;
|
return $deserialized;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($class === 'object') {
|
if ($class === 'mixed') {
|
||||||
settype($data, 'array');
|
|
||||||
return $data;
|
|
||||||
} elseif ($class === 'mixed') {
|
|
||||||
settype($data, gettype($data));
|
settype($data, gettype($data));
|
||||||
return $data;
|
return $data;
|
||||||
}
|
}
|
||||||
|
@ -426,10 +426,7 @@ class ObjectSerializer
|
|||||||
return $deserialized;
|
return $deserialized;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($class === 'object') {
|
if ($class === 'mixed') {
|
||||||
settype($data, 'array');
|
|
||||||
return $data;
|
|
||||||
} elseif ($class === 'mixed') {
|
|
||||||
settype($data, gettype($data));
|
settype($data, gettype($data));
|
||||||
return $data;
|
return $data;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user