Open cloudswitch opened 10 months ago
Why don't you handle the exception like you want? This is just a library and not a complete shop plugin. You can do something linke this
try {
$address = AddressSplitter::splitAddress($street);
} catch (InvalidArgumentException $exception) {
$address['streetName'] = $street;
$address['houseNumber'] = '';
}
Hi,
awesome work guys, thank you! It's not really an issue however I have massive problems with this right now. We are testing the whole order process of the shop and someone has put xyz as street in the last order without house number. I'm getting of course splitting exception from line 290. The problem is I have no rights to delete this order from the shop and the whole download process is not working because of this. Would it be possible, that if the address is not splittable, simpy to just put street into streetName and create the array without houseNumber? I have tried it but had no luck. I would greatly appreciate any help. Thanks