Skip to content

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Model/Import/Category.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@
4141
use Magento\Framework\Filesystem;
4242
use Magento\UrlRewrite\Model\UrlPersistInterface;
4343
use Magento\Catalog\Api\CategoryRepositoryInterface;
44+
use Magento\Eav\Model\Entity\Attribute\Source\Boolean;
4445

4546
/**
4647
* Entity Adapter for importing Magento Categories
@@ -339,7 +340,7 @@ public function getAttributeOptions(AbstractAttribute $attribute): array
339340
$index = 'label';
340341
if (
341342
in_array($attribute->getAttributeCode(), $this->indexValueAttributes) ||
342-
$attribute->getSourceModel() == "Magento\Eav\Model\Entity\Attribute\Source\Boolean"
343+
$attribute->getSourceModel() == Boolean::class
343344
) {
344345
$index = 'value';
345346
};

0 commit comments

Comments
 (0)