Skip to content

Commit e06f660

Browse files
committed
Replace hard-code scope store string
1 parent 339c099 commit e06f660

File tree

2 files changed

+156
-150
lines changed

2 files changed

+156
-150
lines changed

app/code/Magento/Customer/Model/EmailNotification.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
* Copyright © Magento, Inc. All rights reserved.
44
* See COPYING.txt for license details.
55
*/
6+
declare(strict_types=1);
67

78
namespace Magento\Customer\Model;
89

@@ -15,6 +16,7 @@
1516
use Magento\Customer\Api\Data\CustomerInterface;
1617
use Magento\Framework\Reflection\DataObjectProcessor;
1718
use Magento\Framework\Exception\LocalizedException;
19+
use Magento\Store\Model\ScopeInterface;
1820

1921
/**
2022
* Customer email notification
@@ -253,14 +255,14 @@ private function sendEmailTemplate(
253255
$storeId = null,
254256
$email = null
255257
) {
256-
$templateId = $this->scopeConfig->getValue($template, 'store', $storeId);
258+
$templateId = $this->scopeConfig->getValue($template, ScopeInterface::SCOPE_STORE, $storeId);
257259
if ($email === null) {
258260
$email = $customer->getEmail();
259261
}
260262

261263
/** @var array $from */
262264
$from = $this->senderResolver->resolve(
263-
$this->scopeConfig->getValue($sender, 'store', $storeId),
265+
$this->scopeConfig->getValue($sender, ScopeInterface::SCOPE_STORE, $storeId),
264266
$storeId
265267
);
266268

0 commit comments

Comments
 (0)