[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:
Thomas Hansen 2022-07-24 03:18:48 +02:00 committed by GitHub
parent 0b31bd4705
commit 7c7ac2f0d3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -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);
} }
} }

View File

@ -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&lt;string,int&gt;' !== 'string') { if ('array<string,int>' !== 'string') {
$content = json_decode($content); $content = json_decode($content);
} }
} }