Skip to content

Commit 26a0311

Browse files
ENGCOM-6051: Correct signature of the $customerModel #24943
2 parents 546e853 + 69c0bd7 commit 26a0311

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

app/code/Magento/Customer/Model/ResourceModel/CustomerRepository.php

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,24 +7,25 @@
77
namespace Magento\Customer\Model\ResourceModel;
88

99
use Magento\Customer\Api\CustomerMetadataInterface;
10+
use Magento\Customer\Api\CustomerRepositoryInterface;
1011
use Magento\Customer\Api\Data\CustomerInterface;
1112
use Magento\Customer\Api\Data\CustomerSearchResultsInterfaceFactory;
12-
use Magento\Framework\Api\ExtensibleDataObjectConverter;
13-
use Magento\Framework\Api\ExtensionAttribute\JoinProcessorInterface;
13+
use Magento\Customer\Model\Customer as CustomerModel;
14+
use Magento\Customer\Model\Customer\NotificationStorage;
1415
use Magento\Customer\Model\CustomerFactory;
1516
use Magento\Customer\Model\CustomerRegistry;
1617
use Magento\Customer\Model\Data\CustomerSecureFactory;
17-
use Magento\Customer\Model\Customer\NotificationStorage;
1818
use Magento\Customer\Model\Delegation\Data\NewOperation;
19-
use Magento\Customer\Api\CustomerRepositoryInterface;
19+
use Magento\Customer\Model\Delegation\Storage as DelegatedStorage;
2020
use Magento\Framework\Api\DataObjectHelper;
21+
use Magento\Framework\Api\ExtensibleDataObjectConverter;
22+
use Magento\Framework\Api\ExtensionAttribute\JoinProcessorInterface;
2123
use Magento\Framework\Api\ImageProcessorInterface;
24+
use Magento\Framework\Api\Search\FilterGroup;
2225
use Magento\Framework\Api\SearchCriteria\CollectionProcessorInterface;
2326
use Magento\Framework\Api\SearchCriteriaInterface;
24-
use Magento\Framework\Api\Search\FilterGroup;
25-
use Magento\Framework\Event\ManagerInterface;
26-
use Magento\Customer\Model\Delegation\Storage as DelegatedStorage;
2727
use Magento\Framework\App\ObjectManager;
28+
use Magento\Framework\Event\ManagerInterface;
2829
use Magento\Store\Model\StoreManagerInterface;
2930

3031
/**
@@ -203,7 +204,7 @@ public function save(CustomerInterface $customer, $passwordHash = null)
203204
$customer->setAddresses([]);
204205
$customerData = $this->extensibleDataObjectConverter->toNestedArray($customer, [], CustomerInterface::class);
205206
$customer->setAddresses($origAddresses);
206-
/** @var Customer $customerModel */
207+
/** @var CustomerModel $customerModel */
207208
$customerModel = $this->customerFactory->create(['data' => $customerData]);
208209
//Model's actual ID field maybe different than "id" so "id" field from $customerData may be ignored.
209210
$customerModel->setId($customer->getId());

0 commit comments

Comments
 (0)