File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
app/code/Magento/Persistent/Observer Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -87,7 +87,7 @@ public function execute(\Magento\Framework\Event\Observer $observer)
8787 /** @var \Magento\Customer\Api\Data\CustomerInterface $customer */
8888 $ customer = $ this ->customerRepository ->getById ($ this ->_persistentSession ->getSession ()->getCustomerId ());
8989 if ($ defaultShipping = $ customer ->getDefaultShipping ()) {
90- $ address = $ this ->getCustomerAddressById ($ defaultShipping );
90+ $ address = $ this ->getCustomerAddressById (( int ) $ defaultShipping );
9191
9292 if ($ address !== null ) {
9393 $ this ->_customerSession ->setDefaultTaxShippingAddress (
@@ -103,7 +103,7 @@ public function execute(\Magento\Framework\Event\Observer $observer)
103103 }
104104
105105 if ($ defaultBilling = $ customer ->getDefaultBilling ()) {
106- $ address = $ this ->getCustomerAddressById ($ defaultBilling );
106+ $ address = $ this ->getCustomerAddressById (( int ) $ defaultBilling );
107107
108108 if ($ address !== null ) {
109109 $ this ->_customerSession ->setDefaultTaxBillingAddress ([
@@ -127,7 +127,7 @@ public function execute(\Magento\Framework\Event\Observer $observer)
127127 * @param int $addressId
128128 * @return \Magento\Customer\Api\Data\AddressInterface|null
129129 */
130- private function getCustomerAddressById ($ addressId )
130+ private function getCustomerAddressById (int $ addressId )
131131 {
132132 try {
133133 return $ this ->addressRepository ->getById ($ addressId );
You can’t perform that action at this time.
0 commit comments