Skip to content

Commit 9e34da4

Browse files
authored
Be consistent with array_map (#685)
1 parent 1976fda commit 9e34da4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Input/BatchWriteItemInput.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ public function __construct(array $input = [])
4848
{
4949
$this->RequestItems = [];
5050
foreach ($input['RequestItems'] ?? [] as $key => $item) {
51-
$this->RequestItems[$key] = array_map(function ($v) {return WriteRequest::create($v); }, $item);
51+
$this->RequestItems[$key] = array_map([WriteRequest::class, 'create'], $item);
5252
}
5353
$this->ReturnConsumedCapacity = $input['ReturnConsumedCapacity'] ?? null;
5454
$this->ReturnItemCollectionMetrics = $input['ReturnItemCollectionMetrics'] ?? null;

0 commit comments

Comments
 (0)