Skip to content

Commit 8ba9f19

Browse files
authored
Remove useless brackets for consistency with map keys (#438)
1 parent c7dd1be commit 8ba9f19

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/Sts/Input/AssumeRoleRequest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,7 @@ private function requestBody(): array
323323
foreach ($this->PolicyArns as $mapValue) {
324324
++$index;
325325
foreach ($mapValue->requestBody() as $bodyKey => $bodyValue) {
326-
$payload["PolicyArns.member.{$index}.$bodyKey"] = $bodyValue;
326+
$payload["PolicyArns.member.$index.$bodyKey"] = $bodyValue;
327327
}
328328
}
329329

@@ -338,14 +338,14 @@ private function requestBody(): array
338338
foreach ($this->Tags as $mapValue) {
339339
++$index;
340340
foreach ($mapValue->requestBody() as $bodyKey => $bodyValue) {
341-
$payload["Tags.member.{$index}.$bodyKey"] = $bodyValue;
341+
$payload["Tags.member.$index.$bodyKey"] = $bodyValue;
342342
}
343343
}
344344

345345
$index = 0;
346346
foreach ($this->TransitiveTagKeys as $mapValue) {
347347
++$index;
348-
$payload["TransitiveTagKeys.member.{$index}"] = $mapValue;
348+
$payload["TransitiveTagKeys.member.$index"] = $mapValue;
349349
}
350350

351351
if (null !== $v = $this->ExternalId) {

src/Sts/Input/AssumeRoleWithWebIdentityRequest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ private function requestBody(): array
241241
foreach ($this->PolicyArns as $mapValue) {
242242
++$index;
243243
foreach ($mapValue->requestBody() as $bodyKey => $bodyValue) {
244-
$payload["PolicyArns.member.{$index}.$bodyKey"] = $bodyValue;
244+
$payload["PolicyArns.member.$index.$bodyKey"] = $bodyValue;
245245
}
246246
}
247247

0 commit comments

Comments
 (0)