@@ -66,14 +66,14 @@ class Save extends \Magento\Customer\Controller\Adminhtml\Index implements HttpP
6666 private $ subscriptionManager ;
6767
6868 /**
69- * @var SetCustomerStore
69+ * @var AddressRegistry
7070 */
71- private $ customerStore ;
71+ private $ addressRegistry ;
7272
7373 /**
74- * @var AddressRegistry
74+ * @var SetCustomerStore|null
7575 */
76- private $ addressRegistry ;
76+ private $ customerStore ;
7777
7878 /**
7979 * Constructor
@@ -104,8 +104,8 @@ class Save extends \Magento\Customer\Controller\Adminhtml\Index implements HttpP
104104 * @param ForwardFactory $resultForwardFactory
105105 * @param JsonFactory $resultJsonFactory
106106 * @param SubscriptionManagerInterface $subscriptionManager
107- * @param SetCustomerStore $customerStore
108107 * @param AddressRegistry|null $addressRegistry
108+ * @param SetCustomerStore|null $customerStore
109109 * @SuppressWarnings(PHPMD.ExcessiveParameterList)
110110 */
111111 public function __construct (
@@ -135,8 +135,8 @@ public function __construct(
135135 ForwardFactory $ resultForwardFactory ,
136136 JsonFactory $ resultJsonFactory ,
137137 SubscriptionManagerInterface $ subscriptionManager ,
138- SetCustomerStore $ customerStore ,
139- AddressRegistry $ addressRegistry = null
138+ AddressRegistry $ addressRegistry = null ,
139+ ? SetCustomerStore $ customerStore = null
140140 ) {
141141 parent ::__construct (
142142 $ context ,
@@ -166,8 +166,8 @@ public function __construct(
166166 $ resultJsonFactory
167167 );
168168 $ this ->subscriptionManager = $ subscriptionManager ;
169- $ this ->customerStore = $ customerStore ;
170169 $ this ->addressRegistry = $ addressRegistry ?: ObjectManager::getInstance ()->get (AddressRegistry::class);
170+ $ this ->customerStore = $ customerStore ?: ObjectManager::getInstance ()->get (SetCustomerStore::class);
171171 }
172172
173173 /**
0 commit comments