Skip to content

Commit badbbb0

Browse files
committed
MAGETWO-62691: [Performance] EAV attributes caching optimization
1 parent 0c32f9e commit badbbb0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/code/Magento/Customer/Model/AttributeMetadataConverter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ public function createMetadataAttribute($attribute)
8787
}
8888
}
8989
$validationRules = [];
90-
foreach ($attribute->getValidateRules() as $name => $value) {
90+
foreach ((array)$attribute->getValidateRules() as $name => $value) {
9191
$validationRule = $this->validationRuleFactory->create()
9292
->setName($name)
9393
->setValue($value);

0 commit comments

Comments
 (0)