Skip to content

Commit fefed3e

Browse files
committed
MC-15079: Exception is thrown when cart product is removed from shared catalog
1 parent 01fbfeb commit fefed3e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/code/Magento/Quote/Model/ResourceModel/Quote/Item/Collection.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -325,10 +325,10 @@ private function getOptionProductIds(
325325
/**
326326
* Check is valid product.
327327
*
328-
* @param ProductInterface $product
328+
* @param ProductInterface|null $product
329329
* @return bool
330330
*/
331-
private function isValidProduct(ProductInterface $product): bool
331+
private function isValidProduct(ProductInterface $product = null): bool
332332
{
333333
$result = ($product && (int)$product->getStatus() !== ProductStatus::STATUS_DISABLED);
334334

0 commit comments

Comments
 (0)