Skip to content

Commit 9ced73c

Browse files
committed
magento/graphql-ce#961: ShippingAddressInput.postcode: String, is not required by Schema
1 parent e9a701f commit 9ced73c

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

app/code/Magento/QuoteGraphQl/Model/Cart/SetBillingAddressOnCart.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ private function createBillingAddress(
133133

134134
if (true !== $errors) {
135135
$e = new GraphQlInputException(__('Billing address errors'));
136-
foreach ($errors as $error){
136+
foreach ($errors as $error) {
137137
$e->addError(new GraphQlInputException($error));
138138
}
139139
throw $e;

app/code/Magento/QuoteGraphQl/Model/Cart/SetShippingAddressesOnCart.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,8 @@ public function execute(ContextInterface $context, CartInterface $cart, array $s
5656
$errors = $shippingAddress->validate();
5757

5858
if (true !== $errors) {
59-
$e = new GraphQlInputException(__('Shipping address error'));
60-
foreach ($errors as $error){
59+
$e = new GraphQlInputException(__('Shipping address errors'));
60+
foreach ($errors as $error) {
6161
$e->addError(new GraphQlInputException($error));
6262
}
6363
throw $e;

0 commit comments

Comments
 (0)