[PHP] ensure rewound guzzle response body (#4744)

* [PHP] ensure rewound guzzle response body

* recompile php client
This commit is contained in:
Roland Franssen
2019-12-10 14:52:36 +01:00
committed by William Cheng
parent a695748805
commit b19d241be7
14 changed files with 187 additions and 187 deletions

View File

@@ -189,7 +189,7 @@ use {{invokerPackage}}\ObjectSerializer;
"[{$e->getCode()}] {$e->getMessage()}",
$e->getCode(),
$e->getResponse() ? $e->getResponse()->getHeaders() : null,
$e->getResponse() ? $e->getResponse()->getBody()->getContents() : null
$e->getResponse() ? (string) $e->getResponse()->getBody() : null
);
}
@@ -219,7 +219,7 @@ use {{invokerPackage}}\ObjectSerializer;
if ('{{dataType}}' === '\SplFileObject') {
$content = $responseBody; //stream goes to serializer
} else {
$content = $responseBody->getContents();
$content = (string) $responseBody;
}
return [
@@ -238,7 +238,7 @@ use {{invokerPackage}}\ObjectSerializer;
if ($returnType === '\SplFileObject') {
$content = $responseBody; //stream goes to serializer
} else {
$content = $responseBody->getContents();
$content = (string) $responseBody;
}
return [
@@ -353,7 +353,7 @@ use {{invokerPackage}}\ObjectSerializer;
if ($returnType === '\SplFileObject') {
$content = $responseBody; //stream goes to serializer
} else {
$content = $responseBody->getContents();
$content = (string) $responseBody;
}
return [