Closed FractalMind closed 3 months ago
$from = new \CommerceGuys\Addressing\Address();
$from->withCountryCode('CA');
$from->withAdditionalName('Quebec');
$from->withLocality('Montreal');
$from->withPostalCode('H2G1A7');
$from->withAddressLine1('1452 Rue Bélanger, Montréal, QC H2G 1A7');
$from->withOrganization('Espace Plomberium');
This gives me the same result with the class you provide.
@FractalMind probably too late to be of any help but Address
is immutable so you'll have to either reassign the $from
and $to
variables after setting a value or use method chaining.
What am I doing wrong?
[$amounts, $rates, $types] return empty arrays!?
Did I miss something?
Thank you for your time :smile: