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 1852bab commit 9c08e87Copy full SHA for 9c08e87
Model/Import/Category.php
@@ -337,12 +337,10 @@ public function getAttributeOptions(AbstractAttribute $attribute): array
337
if ($attribute->usesSource()) {
338
// should attribute has index (option value) instead of a label?
339
$index = 'label';
340
- if (
341
- in_array($attribute->getAttributeCode(), $this->indexValueAttributes) ||
342
- $attribute->getSourceModel() == Boolean::class
343
- ) {
+ if (in_array($attribute->getAttributeCode(), $this->indexValueAttributes, true)
+ || $attribute->getSourceModel() === Boolean::class) {
344
$index = 'value';
345
- };
+ }
346
347
// only default (admin) store values used
348
/** @var Attribute $attribute */
0 commit comments