diff --git a/app/code/Magento/Catalog/Model/ResourceModel/AbstractResource.php b/app/code/Magento/Catalog/Model/ResourceModel/AbstractResource.php index 00cf1be4f2141..f4d3606d52d0f 100644 --- a/app/code/Magento/Catalog/Model/ResourceModel/AbstractResource.php +++ b/app/code/Magento/Catalog/Model/ResourceModel/AbstractResource.php @@ -568,6 +568,6 @@ public function getAttributeRawValue($entityId, $attribute, $store) $attributesData = $_data[1]; } - return $attributesData ? $attributesData : false; + return $attributesData === false ? false : $attributesData; } } diff --git a/app/code/Magento/Config/Model/Config/SourceFactory.php b/app/code/Magento/Config/Model/Config/SourceFactory.php index 1846bac059c29..654a3bcec4d89 100644 --- a/app/code/Magento/Config/Model/Config/SourceFactory.php +++ b/app/code/Magento/Config/Model/Config/SourceFactory.php @@ -26,7 +26,7 @@ public function __construct(\Magento\Framework\ObjectManagerInterface $objectMan * Create backend model by name * * @param string $modelName - * @return mixed + * @return \Magento\Framework\Option\ArrayInterface */ public function create($modelName) {