diff --git a/app/code/Magento/Customer/Model/Customer.php b/app/code/Magento/Customer/Model/Customer.php index e0a7281776de9..6dcfe8ec4c6ed 100644 --- a/app/code/Magento/Customer/Model/Customer.php +++ b/app/code/Magento/Customer/Model/Customer.php @@ -886,7 +886,7 @@ public function getGroupId() ScopeInterface::SCOPE_STORE, $storeId ); - $this->setData('group_id', $groupId); + $this->setData('group_id', (int)$groupId); } return $this->getData('group_id'); } @@ -900,7 +900,7 @@ public function getTaxClassId() { if (!$this->getData('tax_class_id')) { $groupTaxClassId = $this->_groupRepository->getById($this->getGroupId())->getTaxClassId(); - $this->setData('tax_class_id', $groupTaxClassId); + $this->setData('tax_class_id', (int)$groupTaxClassId); } return $this->getData('tax_class_id'); } @@ -949,10 +949,10 @@ public function getSharedWebsiteIds() if ($ids === null) { $ids = []; if ((bool)$this->getSharingConfig()->isWebsiteScope()) { - $ids[] = $this->getWebsiteId(); + $ids[] = (int)$this->getWebsiteId(); } else { foreach ($this->_storeManager->getWebsites() as $website) { - $ids[] = $website->getId(); + $ids[] = (int)$website->getId(); } } $this->setData('shared_website_ids', $ids);