forked from loafle/openapi-generator-original
[php] fix 'mixed' invalid for settype() (#10576)
Signed-off-by: Nick Ufer <nick@ufer.dev>
This commit is contained in:
parent
b4206ad249
commit
80c3a0e4c3
@ -296,6 +296,9 @@ class ObjectSerializer
|
|||||||
if ($class === 'object') {
|
if ($class === 'object') {
|
||||||
settype($data, 'array');
|
settype($data, 'array');
|
||||||
return $data;
|
return $data;
|
||||||
|
} else if ($class === 'mixed') {
|
||||||
|
settype($data, gettype($data));
|
||||||
|
return $data;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($class === '\DateTime') {
|
if ($class === '\DateTime') {
|
||||||
|
@ -305,6 +305,9 @@ class ObjectSerializer
|
|||||||
if ($class === 'object') {
|
if ($class === 'object') {
|
||||||
settype($data, 'array');
|
settype($data, 'array');
|
||||||
return $data;
|
return $data;
|
||||||
|
} else if ($class === 'mixed') {
|
||||||
|
settype($data, gettype($data));
|
||||||
|
return $data;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($class === '\DateTime') {
|
if ($class === '\DateTime') {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user