Skip to content

Commit c4e4cbd

Browse files
committed
#21787: Static test fix.
1 parent 056b526 commit c4e4cbd

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -299,6 +299,7 @@ public function assignCustomer($cartId, $customerId, $storeId)
299299
throw new StateException(
300300
__("The customer can't be assigned to the cart because the customer already has an active cart.")
301301
);
302+
// phpcs:ignore Magento2.CodeAnalysis.EmptyBlock
302303
} catch (\Magento\Framework\Exception\NoSuchEntityException $e) {
303304
}
304305

@@ -653,12 +654,14 @@ private function rollbackAddresses(
653654
'exception' => $e,
654655
]
655656
);
657+
// phpcs:ignore Magento2.Exceptions.ThrowCatch
656658
} catch (\Exception $consecutiveException) {
657659
$message = sprintf(
658660
"An exception occurred on 'sales_model_service_quote_submit_failure' event: %s",
659661
$consecutiveException->getMessage()
660662
);
661663

664+
// phpcs:ignore Magento2.Exceptions.DirectThrow
662665
throw new \Exception($message, 0, $e);
663666
}
664667
}

0 commit comments

Comments
 (0)