← All changes
|
includes/sdk/s3/Aws/Api/Serializer/QueryParamBuilder.php
+2
-1
1.2.8
→
1.4.2
View file →
| @@ -70,9 +70,10 @@ | ||
| 70 | 70 | $items = $shape->getMember(); |
| 71 | 71 | if (!$this->isFlat($shape)) { |
| 72 | 72 | $locationName = $shape->getMember()['locationName'] ?: 'member'; |
| 73 | 73 | $prefix .= ".{$locationName}"; |
| 74 | - } elseif ($name = $this->queryName($items)) { | |
| 74 | + // flattened lists can also model a `locationName` | |
| 75 | + } elseif ($name = $shape['locationName'] ?? $this->queryName($items)) { | |
| 75 | 76 | $parts = \explode('.', $prefix); |
| 76 | 77 | $parts[\count($parts) - 1] = $name; |
| 77 | 78 | $prefix = \implode('.', $parts); |
| 78 | 79 | } |