We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f6fca76 commit 215e6eaCopy full SHA for 215e6ea
modules/swagger-codegen/src/main/resources/php/ObjectSerializer.mustache
@@ -49,6 +49,11 @@ class ObjectSerializer
49
$data[$property] = self::sanitizeForSerialization($value);
50
}
51
return $data;
52
+ } elseif ($data instanceof \stdClass) {
53
+ foreach ($data as $property => $value) {
54
+ $data->$property = self::sanitizeForSerialization($value);
55
+ }
56
+ return $data;
57
} elseif (is_object($data)) {
58
$values = [];
59
$formats = $data::swaggerFormats();
0 commit comments