Skip to content

Commit

Permalink
Added strict flag to in_array
Browse files Browse the repository at this point in the history
  • Loading branch information
v.sikailo committed Dec 7, 2018
1 parent b4269c2 commit 14aa091
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public function add($attributeCode, $option)
/** @var \Magento\Eav\Api\Data\AttributeOptionInterface $attributeOption */
$attributeOption = $attributeOption->getLabel();
});
if (in_array($option->getLabel(), $currentOptions)) {
if (in_array($option->getLabel(), $currentOptions, true)) {
return false;
}
}
Expand Down

0 comments on commit 14aa091

Please sign in to comment.