diff --git a/lib/internal/Magento/Framework/GraphQl/Query/EnumLookup.php b/lib/internal/Magento/Framework/GraphQl/Query/EnumLookup.php index fb4d9d40b05fa..4afeac9238623 100644 --- a/lib/internal/Magento/Framework/GraphQl/Query/EnumLookup.php +++ b/lib/internal/Magento/Framework/GraphQl/Query/EnumLookup.php @@ -52,7 +52,7 @@ public function getEnumValueFromField(string $enumName, string $fieldValue) : st $mappedValues = $this->enumDataMapper->getMappedEnums($enumName); foreach ($enumObject->getValues() as $enumItem) { - if (isset($mappedValues[$enumItem->getName()]) && $mappedValues[$enumItem->getName()] == $fieldValue) { + if (isset($mappedValues[$enumItem->getName()]) && $mappedValues[$enumItem->getName()] === $fieldValue) { return $enumItem->getValue(); } }