File tree 3 files changed +6
-6
lines changed 3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -51,8 +51,8 @@ protected function populateResult(Response $response): void
51
51
{
52
52
$ data = $ response ->toArray ();
53
53
54
- $ this ->successful = $ this ->populateResultChangeMessageVisibilityBatchResultEntryList ($ data ['Successful ' ]);
55
- $ this ->failed = $ this ->populateResultBatchResultErrorEntryList ($ data ['Failed ' ]);
54
+ $ this ->successful = $ this ->populateResultChangeMessageVisibilityBatchResultEntryList ($ data ['Successful ' ] ?? [] );
55
+ $ this ->failed = $ this ->populateResultBatchResultErrorEntryList ($ data ['Failed ' ] ?? [] );
56
56
}
57
57
58
58
private function populateResultBatchResultErrorEntry (array $ json ): BatchResultErrorEntry
Original file line number Diff line number Diff line change @@ -51,8 +51,8 @@ protected function populateResult(Response $response): void
51
51
{
52
52
$ data = $ response ->toArray ();
53
53
54
- $ this ->successful = $ this ->populateResultDeleteMessageBatchResultEntryList ($ data ['Successful ' ]);
55
- $ this ->failed = $ this ->populateResultBatchResultErrorEntryList ($ data ['Failed ' ]);
54
+ $ this ->successful = $ this ->populateResultDeleteMessageBatchResultEntryList ($ data ['Successful ' ] ?? [] );
55
+ $ this ->failed = $ this ->populateResultBatchResultErrorEntryList ($ data ['Failed ' ] ?? [] );
56
56
}
57
57
58
58
private function populateResultBatchResultErrorEntry (array $ json ): BatchResultErrorEntry
Original file line number Diff line number Diff line change @@ -51,8 +51,8 @@ protected function populateResult(Response $response): void
51
51
{
52
52
$ data = $ response ->toArray ();
53
53
54
- $ this ->successful = $ this ->populateResultSendMessageBatchResultEntryList ($ data ['Successful ' ]);
55
- $ this ->failed = $ this ->populateResultBatchResultErrorEntryList ($ data ['Failed ' ]);
54
+ $ this ->successful = $ this ->populateResultSendMessageBatchResultEntryList ($ data ['Successful ' ] ?? [] );
55
+ $ this ->failed = $ this ->populateResultBatchResultErrorEntryList ($ data ['Failed ' ] ?? [] );
56
56
}
57
57
58
58
private function populateResultBatchResultErrorEntry (array $ json ): BatchResultErrorEntry
You can’t perform that action at this time.
0 commit comments