File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
app/code/Magento/Customer/Block/Address Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change 1
1
<?php
2
- declare (strict_types=1 );
3
2
/**
4
3
* Copyright © Magento, Inc. All rights reserved.
5
4
* See COPYING.txt for license details.
6
5
*/
6
+ declare (strict_types=1 );
7
+
7
8
namespace Magento \Customer \Block \Address ;
8
9
9
10
use Magento \Customer \Model \ResourceModel \Address \CollectionFactory as AddressCollectionFactory ;
@@ -237,7 +238,10 @@ private function getAddressCollection(): \Magento\Customer\Model\ResourceModel\A
237
238
/** @var \Magento\Customer\Model\ResourceModel\Address\Collection $collection */
238
239
$ collection = $ this ->addressCollectionFactory ->create ();
239
240
$ collection ->setOrder ('entity_id ' , 'desc ' );
240
- $ collection ->addFieldToFilter ('entity_id ' , array ('nin ' => array ($ this ->getDefaultBilling (), $ this ->getDefaultShipping ())));
241
+ $ collection ->addFieldToFilter (
242
+ 'entity_id ' ,
243
+ ['nin ' => [$ this ->getDefaultBilling (), $ this ->getDefaultShipping ()]]
244
+ );
241
245
$ collection ->setCustomerFilter ([$ this ->getCustomer ()->getId ()]);
242
246
$ this ->addressCollection = $ collection ;
243
247
}
You can’t perform that action at this time.
0 commit comments