Skip to content

Commit 96fbeb1

Browse files
committed
Fix empty matchedZones when requiring Scope::ALL
1 parent 6183bdc commit 96fbeb1

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/Checker/ChannelEligibilityChecker.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
use FluxSE\SyliusEUVatPlugin\Entity\EuropeanChannelAwareInterface;
88
use FluxSE\SyliusEUVatPlugin\Entity\VATNumberAwareInterface;
99
use Sylius\Component\Addressing\Matcher\ZoneMatcherInterface;
10-
use Sylius\Component\Addressing\Model\Scope;
1110
use Sylius\Component\Addressing\Model\ZoneInterface;
1211
use Sylius\Component\Core\Model\AddressInterface;
1312
use Sylius\Component\Core\Model\ChannelInterface;
@@ -37,7 +36,7 @@ public function check(
3736

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

4241
$belongsToEUZone = false;
4342
/** @var ZoneInterface $matchedZone */

0 commit comments

Comments
 (0)