Skip to content

Commit 423f463

Browse files
authored
Fix properties not base64 decoded (#1565)
1 parent e41010f commit 423f463

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Generator/ResponseParser/RestJsonParser.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -355,14 +355,14 @@ private function parseResponseMap(MapShape $shape, string $input, bool $required
355355
$body = '
356356
$items = [];
357357
foreach ($json as $name => $value) {
358-
$items[(string) $name] = CLASS::create($value);
358+
$items[(string) $name] = BUILDER_CODE;
359359
}
360360
361361
return $items;
362362
';
363363

364364
$this->functions[$functionName] = $this->createPopulateMethod($functionName, strtr($body, [
365-
'CLASS' => $shape->getValue()->getShape()->getName(),
365+
'BUILDER_CODE' => $this->parseResponseStructure($shapeValue->getShape(), '$value', true),
366366
]), $shape);
367367
} else {
368368
$body = '

0 commit comments

Comments
 (0)