diff --git a/app/code/Magento/Eav/Model/Attribute/Data/AbstractData.php b/app/code/Magento/Eav/Model/Attribute/Data/AbstractData.php index 01df6064bf21b..1b5f45aa2b6e0 100644 --- a/app/code/Magento/Eav/Model/Attribute/Data/AbstractData.php +++ b/app/code/Magento/Eav/Model/Attribute/Data/AbstractData.php @@ -38,7 +38,7 @@ abstract class AbstractData * * @var \Magento\Eav\Model\Attribute */ - protected $_attribite; + protected $_attribute; /** * Entity instance @@ -121,7 +121,7 @@ public function __construct( */ public function setAttribute(\Magento\Eav\Model\Entity\Attribute\AbstractAttribute $attribute) { - $this->_attribite = $attribute; + $this->_attribute = $attribute; return $this; } @@ -133,10 +133,10 @@ public function setAttribute(\Magento\Eav\Model\Entity\Attribute\AbstractAttribu */ public function getAttribute() { - if (!$this->_attribite) { + if (!$this->_attribute) { throw new CoreException(__('Attribute object is undefined')); } - return $this->_attribite; + return $this->_attribute; } /**