Skip to content

Commit 93c790e

Browse files
author
Hwashiang Yu
committed
MC-32145: Wishlist upgrade db update
- Fixed static test failures
1 parent e58fe94 commit 93c790e

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

app/code/Magento/Wishlist/Setup/Patch/Data/CleanUpData.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,8 @@ public function __construct(
5858
$this->moduleDataSetup = $moduleDataSetup;
5959
$this->json = $json ?: ObjectManager::getInstance()->get(Json::class);
6060
$this->queryGenerator = $queryGenerator ?: ObjectManager::getInstance()->get(Generator::class);
61-
$this->queryModifierFactory = $queryModifierFactory ?: ObjectManager::getInstance()->get(QueryModifierFactory::class);
61+
$this->queryModifierFactory = $queryModifierFactory
62+
?: ObjectManager::getInstance()->get(QueryModifierFactory::class);
6263
}
6364

6465
/**
@@ -75,7 +76,7 @@ public function apply()
7576
['option_id', 'value']
7677
);
7778
$iterator = $this->queryGenerator->generate('option_id', $select, self::BATCH_SIZE);
78-
foreach ($iterator as $key=>$selectByRange) {
79+
foreach ($iterator as $selectByRange) {
7980
$optionRows = $this->moduleDataSetup->getConnection()->fetchAll($selectByRange);
8081
foreach ($optionRows as $optionRow) {
8182
$rowValue = $this->json->unserialize($optionRow['value']);

0 commit comments

Comments
 (0)