From 96fbeb1902619c18de229988f89138a03a1adb45 Mon Sep 17 00:00:00 2001 From: Francis Hilaire Date: Mon, 26 Aug 2024 19:10:29 +0300 Subject: [PATCH] Fix empty matchedZones when requiring Scope::ALL --- src/Checker/ChannelEligibilityChecker.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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 */