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 cfa5a55 commit 2af8868Copy full SHA for 2af8868
modules/swagger-codegen/src/main/resources/php/api.mustache
@@ -131,7 +131,7 @@ use {{invokerPackage}}\ObjectSerializer;
131
"[{$e->getCode()}] {$e->getMessage()}",
132
$e->getCode(),
133
$e->getResponse() ? $e->getResponse()->getHeaders() : null,
134
- $e->getResponse()->getBody()->getContents()
+ $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null
135
);
136
}
137
0 commit comments