Skip to content

Commit 31ee11b

Browse files
committed
MAGETWO-62321: Remove uses of unserialize in Magento_Eav for attribute validate_rules
1 parent 8742080 commit 31ee11b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -74,9 +74,9 @@ public function __construct(
7474
$this->indexerRegistry = $indexerRegistry;
7575
$this->eavConfig = $eavConfig;
7676

77-
if ($this->fieldDataConverterFactory === null) {
78-
$this->fieldDataConverterFactory = ObjectManager::getInstance()->create(FieldDataConverterFactory::class);
79-
}
77+
$this->fieldDataConverterFactory = $fieldDataConverterFactory ?: ObjectManager::getInstance()->get(
78+
FieldDataConverterFactory::class
79+
);
8080
}
8181

8282
/**

0 commit comments

Comments
 (0)