Skip to content

Commit 0affaa6

Browse files
authored
chore: fix seralization (#851)
1 parent f650535 commit 0affaa6

File tree

6 files changed

+6
-6
lines changed

6 files changed

+6
-6
lines changed

src/Twilio/Rest/Accounts/V1/BulkConsentsList.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ public function create(array $items): BulkConsentsInstance
5454

5555
$data = Values::of([
5656
'Items' =>
57-
Serialize::map($items,function ($e) { return $e; }),
57+
Serialize::map($items,function ($e) { return Serialize::jsonObject($e); }),
5858
]);
5959

6060
$headers = Values::of(['Content-Type' => 'application/x-www-form-urlencoded' ]);

src/Twilio/Rest/Accounts/V1/BulkContactsList.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ public function create(array $items): BulkContactsInstance
5454

5555
$data = Values::of([
5656
'Items' =>
57-
Serialize::map($items,function ($e) { return $e; }),
57+
Serialize::map($items,function ($e) { return Serialize::jsonObject($e); }),
5858
]);
5959

6060
$headers = Values::of(['Content-Type' => 'application/x-www-form-urlencoded' ]);

src/Twilio/Rest/Events/V1/SubscriptionList.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ public function create(string $description, string $sinkSid, array $types, array
6565
'SinkSid' =>
6666
$sinkSid,
6767
'Types' =>
68-
Serialize::map($types,function ($e) { return $e; }),
68+
Serialize::map($types,function ($e) { return Serialize::jsonObject($e); }),
6969
'ReceiveEventsFromSubaccounts' =>
7070
Serialize::booleanToString($options['receiveEventsFromSubaccounts']),
7171
]);

src/Twilio/Rest/FlexApi/V1/PluginConfigurationList.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ public function create(string $name, array $options = []): PluginConfigurationIn
6161
'Name' =>
6262
$name,
6363
'Plugins' =>
64-
Serialize::map($options['plugins'], function ($e) { return $e; }),
64+
Serialize::map($options['plugins'], function ($e) { return Serialize::jsonObject($e); }),
6565
'Description' =>
6666
$options['description'],
6767
]);

src/Twilio/Rest/Proxy/V1/Service/SessionList.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ public function create(array $options = []): SessionInstance
7474
'Status' =>
7575
$options['status'],
7676
'Participants' =>
77-
Serialize::map($options['participants'], function ($e) { return $e; }),
77+
Serialize::map($options['participants'], function ($e) { return Serialize::jsonObject($e); }),
7878
]);
7979

8080
$headers = Values::of(['Content-Type' => 'application/x-www-form-urlencoded' ]);

src/Twilio/Rest/Verify/V2/Service/Entity/ChallengeList.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ public function create(string $factorSid, array $options = []): ChallengeInstanc
7777
'Details.Message' =>
7878
$options['detailsMessage'],
7979
'Details.Fields' =>
80-
Serialize::map($options['detailsFields'], function ($e) { return $e; }),
80+
Serialize::map($options['detailsFields'], function ($e) { return Serialize::jsonObject($e); }),
8181
'HiddenDetails' =>
8282
Serialize::jsonObject($options['hiddenDetails']),
8383
'AuthPayload' =>

0 commit comments

Comments
 (0)