Skip to content

Commit fa3319d

Browse files
ENGCOM-3609: Fixed fatal error if upgrading from Magento v2.0.0 to v2.3 and non system attributes missing #19530
- Merge Pull Request #19530 from suneet64/magento2:configurable-product-attribute-fix - Merged commits: 1. eb05687 2. 861fd86
2 parents b2dfcb5 + 861fd86 commit fa3319d

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

app/code/Magento/ConfigurableProduct/Setup/Patch/Data/InstallInitialConfigurableAttributes.php

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,16 @@
66

77
namespace Magento\ConfigurableProduct\Setup\Patch\Data;
88

9+
use Magento\ConfigurableProduct\Model\Product\Type\Configurable;
910
use Magento\Eav\Setup\EavSetup;
1011
use Magento\Eav\Setup\EavSetupFactory;
11-
use Magento\Framework\App\ResourceConnection;
1212
use Magento\Framework\Setup\ModuleDataSetupInterface;
1313
use Magento\Framework\Setup\Patch\DataPatchInterface;
1414
use Magento\Framework\Setup\Patch\PatchVersionInterface;
15-
use Magento\ConfigurableProduct\Model\Product\Type\Configurable;
1615

1716
/**
1817
* Class InstallInitialConfigurableAttributes
18+
*
1919
* @package Magento\ConfigurableProduct\Setup\Patch
2020
*/
2121
class InstallInitialConfigurableAttributes implements DataPatchInterface, PatchVersionInterface
@@ -24,6 +24,7 @@ class InstallInitialConfigurableAttributes implements DataPatchInterface, PatchV
2424
* @var ModuleDataSetupInterface
2525
*/
2626
private $moduleDataSetup;
27+
2728
/**
2829
* @var EavSetupFactory
2930
*/
@@ -43,7 +44,7 @@ public function __construct(
4344
}
4445

4546
/**
46-
* {@inheritdoc}
47+
* @inheritdoc
4748
*/
4849
public function apply()
4950
{
@@ -84,23 +85,23 @@ public function apply()
8485
}
8586

8687
/**
87-
* {@inheritdoc}
88+
* @inheritdoc
8889
*/
8990
public static function getDependencies()
9091
{
9192
return [];
9293
}
9394

9495
/**
95-
* {@inheritdoc}
96+
* @inheritdoc
9697
*/
9798
public static function getVersion()
9899
{
99100
return '2.0.0';
100101
}
101102

102103
/**
103-
* {@inheritdoc}
104+
* @inheritdoc
104105
*/
105106
public function getAliases()
106107
{

0 commit comments

Comments
 (0)