Skip to content

Commit

Permalink
Merge branch 'develop' into bugfix/lineitems-status-unarchiving
Browse files Browse the repository at this point in the history
  • Loading branch information
nfourtythree committed Nov 22, 2023
2 parents 14d9e17 + 4f22bb0 commit 9e592f8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/elements/Order.php
Original file line number Diff line number Diff line change
Expand Up @@ -2926,7 +2926,7 @@ public function setShippingAddress(AddressElement|array|null $address): void

// Ensure that address can only belong to this order
if ($address->ownerId != $this->id) {
throw new InvalidArgumentException('Can not set a shipping address on the order that is is not owned by the order.');
throw new InvalidArgumentException('Can not set a shipping address on the order that is not owned by the order.');
}

$this->shippingAddressId = $address->id;
Expand Down Expand Up @@ -3024,7 +3024,7 @@ public function setBillingAddress(AddressElement|array|null $address): void

// Ensure that address can only belong to this order
if ($address->ownerId !== $this->id) {
throw new InvalidArgumentException('Can not set a billing address on the order that is is not owned by the order.');
throw new InvalidArgumentException('Can not set a billing address on the order that is not owned by the order.');
}

$address->ownerId = $this->id;
Expand Down

0 comments on commit 9e592f8

Please sign in to comment.