Skip to content

Commit 2f3fdc3

Browse files
committed
Notice: Undefined index: shipping_carrier_code is returned instead of Required parameter "shipping_carrier_code" is missin
1 parent 63f4cfb commit 2f3fdc3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/code/Magento/QuoteGraphQl/Model/Resolver/SetShippingMethodsOnCart.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,10 +72,10 @@ public function resolve(Field $field, $context, ResolveInfo $info, array $value
7272
if (!isset($shippingMethod['cart_address_id']) || empty($shippingMethod['cart_address_id'])) {
7373
throw new GraphQlInputException(__('Required parameter "cart_address_id" is missing'));
7474
}
75-
if (!!isset($shippingMethod['carrier_code']) || empty($shippingMethod['carrier_code'])) {
75+
if (!isset($shippingMethod['carrier_code']) || empty($shippingMethod['carrier_code'])) {
7676
throw new GraphQlInputException(__('Required parameter "shipping_carrier_code" is missing'));
7777
}
78-
if (!!isset($shippingMethod['method_code']) || empty($shippingMethod['method_code'])) {
78+
if (!isset($shippingMethod['method_code']) || empty($shippingMethod['method_code'])) {
7979
throw new GraphQlInputException(__('Required parameter "shipping_method_code" is missing'));
8080
}
8181

0 commit comments

Comments
 (0)