Skip to content

Commit 50ce1f5

Browse files
committed
Fix static tests.
1 parent 7436f30 commit 50ce1f5

File tree

1 file changed

+6
-2
lines changed
  • app/code/Magento/Customer/Block/Address

1 file changed

+6
-2
lines changed

app/code/Magento/Customer/Block/Address/Grid.php

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
<?php
2-
declare(strict_types=1);
32
/**
43
* Copyright © Magento, Inc. All rights reserved.
54
* See COPYING.txt for license details.
65
*/
6+
declare(strict_types=1);
7+
78
namespace Magento\Customer\Block\Address;
89

910
use Magento\Customer\Model\ResourceModel\Address\CollectionFactory as AddressCollectionFactory;
@@ -237,7 +238,10 @@ private function getAddressCollection(): \Magento\Customer\Model\ResourceModel\A
237238
/** @var \Magento\Customer\Model\ResourceModel\Address\Collection $collection */
238239
$collection = $this->addressCollectionFactory->create();
239240
$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+
);
241245
$collection->setCustomerFilter([$this->getCustomer()->getId()]);
242246
$this->addressCollection = $collection;
243247
}

0 commit comments

Comments
 (0)