forked from loafle/openapi-generator-original
[PHP] double curly braces bugfix (#12999)
* [PHP] Small bugfix: fix punctual double curly bracket usage, to make it consistent with the code around * [AUTOGENERATED] update samples
This commit is contained in:
parent
0b31bd4705
commit
7c7ac2f0d3
@ -233,7 +233,7 @@ use {{invokerPackage}}\ObjectSerializer;
|
|||||||
$content = $response->getBody(); //stream goes to serializer
|
$content = $response->getBody(); //stream goes to serializer
|
||||||
} else {
|
} else {
|
||||||
$content = (string) $response->getBody();
|
$content = (string) $response->getBody();
|
||||||
if ('{{dataType}}' !== 'string') {
|
if ('{{{dataType}}}' !== 'string') {
|
||||||
$content = json_decode($content);
|
$content = json_decode($content);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -412,7 +412,7 @@ class StoreApi
|
|||||||
$content = $response->getBody(); //stream goes to serializer
|
$content = $response->getBody(); //stream goes to serializer
|
||||||
} else {
|
} else {
|
||||||
$content = (string) $response->getBody();
|
$content = (string) $response->getBody();
|
||||||
if ('array<string,int>' !== 'string') {
|
if ('array<string,int>' !== 'string') {
|
||||||
$content = json_decode($content);
|
$content = json_decode($content);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user