Skip to content

Commit

Permalink
Merge pull request #108 from Quazz/magento2.4.x
Browse files Browse the repository at this point in the history
Cast websiteId to int before passing it to loadBySubscriberEmail
  • Loading branch information
thomas-kl1 authored Sep 7, 2021
2 parents 20a6034 + d04c4d9 commit 8533f97
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Model/Order/Delete/Processor/SubscriberDataProcessor.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public function execute(int $orderId): bool
$subscriber = $this->subscriberFactory->create();
$subscriber->loadBySubscriberEmail(
$order->getCustomerEmail(),
$this->storeManager->getStore($order->getStoreId())->getWebsiteId()
(int) $this->storeManager->getStore($order->getStoreId())->getWebsiteId()
);
$this->subscriberResource->delete($subscriber);

Expand Down

0 comments on commit 8533f97

Please sign in to comment.