Skip to content

Commit 36f0ce8

Browse files
Update generated code (#2008)
* update generated code * Fix tests * Remove ResultWrapper for JSON * Update src/Service/CloudWatch/CHANGELOG.md --------- Co-authored-by: Jérémy Derussé <[email protected]>
1 parent fb89ecd commit 36f0ce8

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

src/Generator/ResponseParser/RestJsonParser.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -105,9 +105,6 @@ public function generate(StructureShape $shape, bool $throwOnError = true): Pars
105105
}
106106

107107
$body = '$data = $response->toArray(' . ($throwOnError ? '' : 'false') . ');' . "\n";
108-
if (null !== $wrapper = $shape->getResultWrapper()) {
109-
$body .= strtr('$data = $data[WRAPPER];' . "\n", ['WRAPPER' => var_export($wrapper, true)]);
110-
}
111108
$body .= "\n" . implode("\n", $properties);
112109

113110
return new ParserResult($body, $this->imports, $this->functions);

0 commit comments

Comments
 (0)