diff --git a/src/Checker/ChannelEligibilityChecker.php b/src/Checker/ChannelEligibilityChecker.php index b355205..abfc1a0 100644 --- a/src/Checker/ChannelEligibilityChecker.php +++ b/src/Checker/ChannelEligibilityChecker.php @@ -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; @@ -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 */