Skip to content

Commit 15cb4cb

Browse files
committed
MAGETWO-97456: Cart's customer and address mismatch
1 parent 66676d5 commit 15cb4cb

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

app/code/Magento/Quote/Model/QuoteAddressValidator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ private function doValidate(AddressInterface $address, $customerId)
6565
//validate customer id
6666
if ($customerId) {
6767
try {
68-
$customer = $this->customerRepository->getById($customerId);
68+
$this->customerRepository->getById($customerId);
6969
} catch (NoSuchEntityException $exception) {
7070
throw new NoSuchEntityException(__('Invalid customer id %1', $customerId));
7171
}

app/code/Magento/Quote/Model/ShippingAddressManagement.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ public function __construct(
7878
}
7979

8080
/**
81-
* @inheritDoc
81+
* @inheritdoc
8282
* @SuppressWarnings(PHPMD.NPathComplexity)
8383
*/
8484
public function assign($cartId, \Magento\Quote\Api\Data\AddressInterface $address)
@@ -122,7 +122,7 @@ public function assign($cartId, \Magento\Quote\Api\Data\AddressInterface $addres
122122
}
123123

124124
/**
125-
* @inheritDoc
125+
* @inheritdoc
126126
*/
127127
public function get($cartId)
128128
{

0 commit comments

Comments
 (0)