update php petstore samples

This commit is contained in:
wing328
2017-12-09 17:32:45 +08:00
parent d43e9c8be2
commit e7b97383d1
7 changed files with 33 additions and 33 deletions

View File

@@ -123,7 +123,7 @@ class FakeApi
"[{$e->getCode()}] {$e->getMessage()}",
$e->getCode(),
$e->getResponse() ? $e->getResponse()->getHeaders() : null,
$e->getResponse()->getBody()->getContents()
$e->getResponse() ? $e->getResponse()->getBody()->getContents() : null
);
}
@@ -237,7 +237,7 @@ class FakeApi
$_tempBody = null;
if ($multipart) {
$headers= $this->headerSelector->selectHeadersForMultipart(
$headers = $this->headerSelector->selectHeadersForMultipart(
['application/json', '*_/ \" =end --']
);
} else {