We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2b424a7 commit 9b5c547Copy full SHA for 9b5c547
src/Checker/StreetEligibilityChecker.php
@@ -7,14 +7,15 @@
7
use Sylius\Component\Addressing\Model\AddressInterface;
8
use VIISON\AddressSplitter\AddressSplitter;
9
use VIISON\AddressSplitter\Exceptions\SplittingException;
10
-use Webmozart\Assert\Assert;
11
12
class StreetEligibilityChecker implements StreetEligibilityCheckerInterface
13
{
14
public function isEligible(AddressInterface $address): bool
15
16
$countryCode = $address->getCountryCode();
17
- Assert::notNull($countryCode);
+ if (null === $countryCode) {
+ return false;
18
+ }
19
20
$street = $address->getStreet();
21
if (null === $street) {
0 commit comments