Skip to content

Commit d59563e

Browse files
Work around where empty lists are missing from responses (#1621)
1 parent 12dd4eb commit d59563e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/Result/PutRecordBatchOutput.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ protected function populateResult(Response $response): void
6161

6262
$this->failedPutCount = (int) $data['FailedPutCount'];
6363
$this->encrypted = isset($data['Encrypted']) ? filter_var($data['Encrypted'], \FILTER_VALIDATE_BOOLEAN) : null;
64-
$this->requestResponses = $this->populateResultPutRecordBatchResponseEntryList($data['RequestResponses']);
64+
$this->requestResponses = $this->populateResultPutRecordBatchResponseEntryList($data['RequestResponses'] ?? []);
6565
}
6666

6767
private function populateResultPutRecordBatchResponseEntry(array $json): PutRecordBatchResponseEntry

0 commit comments

Comments
 (0)