We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 01fbfeb commit fefed3eCopy full SHA for fefed3e
app/code/Magento/Quote/Model/ResourceModel/Quote/Item/Collection.php
@@ -325,10 +325,10 @@ private function getOptionProductIds(
325
/**
326
* Check is valid product.
327
*
328
- * @param ProductInterface $product
+ * @param ProductInterface|null $product
329
* @return bool
330
*/
331
- private function isValidProduct(ProductInterface $product): bool
+ private function isValidProduct(ProductInterface $product = null): bool
332
{
333
$result = ($product && (int)$product->getStatus() !== ProductStatus::STATUS_DISABLED);
334
0 commit comments