Skip to content

Commit

Permalink
Update address usage for commerceguys/addressing v0.8
Browse files Browse the repository at this point in the history
  • Loading branch information
bojanz committed Oct 5, 2015
1 parent 7b4eba4 commit 76cf27b
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/Resolver/TaxType/StoreRegistrationCheckerTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,7 @@ protected function checkStoreRegistration(ZoneInterface $zone, Context $context)
$storeRegistrations = $context->getStoreRegistrations();
foreach ($storeRegistrations as $country) {
if (!isset($this->emptyAddresses[$country])) {
$address = new Address();
$address->setCountryCode($country);
$this->emptyAddresses[$country] = $address;
$this->emptyAddresses[$country] = new Address($country);
}

if ($zone->match($this->emptyAddresses[$country])) {
Expand Down

0 comments on commit 76cf27b

Please sign in to comment.