Skip to content

Commit

Permalink
Fix empty matchedZones when requiring Scope::ALL
Browse files Browse the repository at this point in the history
  • Loading branch information
Prometee committed Aug 26, 2024
1 parent 6183bdc commit 96fbeb1
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/Checker/ChannelEligibilityChecker.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
use FluxSE\SyliusEUVatPlugin\Entity\EuropeanChannelAwareInterface;
use FluxSE\SyliusEUVatPlugin\Entity\VATNumberAwareInterface;
use Sylius\Component\Addressing\Matcher\ZoneMatcherInterface;
use Sylius\Component\Addressing\Model\Scope;
use Sylius\Component\Addressing\Model\ZoneInterface;
use Sylius\Component\Core\Model\AddressInterface;
use Sylius\Component\Core\Model\ChannelInterface;
Expand Down Expand Up @@ -37,7 +36,7 @@ public function check(

private function addressBelongsToEUZone(AddressInterface $address, ZoneInterface $channelEUZone): bool
{
$matchedZones = $this->zoneMatcher->matchAll($address, Scope::ALL);
$matchedZones = $this->zoneMatcher->matchAll($address);

$belongsToEUZone = false;
/** @var ZoneInterface $matchedZone */
Expand Down

0 comments on commit 96fbeb1

Please sign in to comment.