Skip to content

Commit 2ce454a

Browse files
authored
Upgrade phpstan (#1458)
* Upgrade phpstan * Remove dead generated code The isset check ensures that this value is not null or missing. * Remove dead code * Fix the case when calling the fixCs method
1 parent 3d15d37 commit 2ce454a

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
@@ -71,7 +71,7 @@ public function __construct(array $input = [])
7171
{
7272
if (isset($input['RequestItems'])) {
7373
$this->requestItems = [];
74-
foreach ($input['RequestItems'] ?? [] as $key => $item) {
74+
foreach ($input['RequestItems'] as $key => $item) {
7575
$this->requestItems[$key] = array_map([WriteRequest::class, 'create'], $item);
7676
}
7777
}

0 commit comments

Comments
 (0)