Skip to content

Commit

Permalink
Merge pull request #3343 from craftcms/tommysvr-patch-1
Browse files Browse the repository at this point in the history
Fixed a couple of small typos
  • Loading branch information
nfourtythree authored Nov 22, 2023
2 parents 030205d + 1ea10a1 commit 4f22bb0
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 4f22bb0

Please sign in to comment.