Skip to content

Commit 39af05d

Browse files
author
Serhiy Shkolyarenko
committed
MAGETWO-43923: [GitHub]ModelResource namespace inconsistency
static test fix
1 parent 597f76b commit 39af05d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

app/code/Magento/Catalog/Setup/UpgradeData.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ public function __construct(CategorySetupFactory $categorySetupFactory)
3535

3636
/**
3737
* {@inheritdoc}
38+
* @SuppressWarnings(PHPMD.ExcessiveMethodLength)
3839
*/
3940
public function upgrade(ModuleDataSetupInterface $setup, ModuleContextInterface $context)
4041
{
@@ -98,6 +99,7 @@ public function upgrade(ModuleDataSetupInterface $setup, ModuleContextInterface
9899
}
99100

100101
if (version_compare($context->getVersion(), '2.0.2') < 0) {
102+
// set new resource model paths
101103
/** @var \Magento\Catalog\Setup\CategorySetup $categorySetup */
102104
$categorySetup = $this->categorySetupFactory->create(['setup' => $setup]);
103105
$categorySetup->updateEntityType(

0 commit comments

Comments
 (0)