Skip to content

Commit 49aef35

Browse files
authored
Update ShippingAddressManagement.php
Added missing __() wrap on execption. Without it a new exception is thrown: PHP Fatal error: Uncaught TypeError: Argument 1 passed to Magento\Framework\Exception\InputException::__construct() must be an instance of Magento\Framework\Phrase, string given
1 parent 24cd0c3 commit 49aef35

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ public function assign($cartId, \Magento\Quote\Api\Data\AddressInterface $addres
118118
$address->setCollectShippingRates(true);
119119

120120
if (!$quote->validateMinimumAmount($quote->getIsMultiShipping())) {
121-
throw new InputException($this->getMinimumAmountErrorMessage()->getMessage());
121+
throw new InputException(__($this->getMinimumAmountErrorMessage()->getMessage()));
122122
}
123123

124124
try {

0 commit comments

Comments
 (0)