We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8742080 commit 31ee11bCopy full SHA for 31ee11b
app/code/Magento/Customer/Setup/UpgradeData.php
@@ -74,9 +74,9 @@ public function __construct(
74
$this->indexerRegistry = $indexerRegistry;
75
$this->eavConfig = $eavConfig;
76
77
- if ($this->fieldDataConverterFactory === null) {
78
- $this->fieldDataConverterFactory = ObjectManager::getInstance()->create(FieldDataConverterFactory::class);
79
- }
+ $this->fieldDataConverterFactory = $fieldDataConverterFactory ?: ObjectManager::getInstance()->get(
+ FieldDataConverterFactory::class
+ );
80
}
81
82
/**
0 commit comments