Skip to content

Commit 4f22bb0

Browse files
authored
Merge pull request #3343 from craftcms/tommysvr-patch-1
Fixed a couple of small typos
2 parents 030205d + 1ea10a1 commit 4f22bb0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/elements/Order.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2926,7 +2926,7 @@ public function setShippingAddress(AddressElement|array|null $address): void
29262926

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

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

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

30303030
$address->ownerId = $this->id;

0 commit comments

Comments
 (0)