Skip to content

Commit

Permalink
Merge pull request #2053 from breakone/master
Browse files Browse the repository at this point in the history
[CoreBundle] check for null value in CartStockAvailabilityValidator
  • Loading branch information
dpfaffenbauer authored Jul 29, 2022
2 parents 96bd11f + 8052610 commit aee6264
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ public function validate($value, Constraint $constraint): void
private function getExistingCartItemQuantityFromCart(OrderInterface $cart, OrderItemInterface $cartItem): float
{
$product = $cartItem->getProduct();
$quantity = $cartItem->getDefaultUnitQuantity();
$quantity = $cartItem->getDefaultUnitQuantity() ?? 0;

/**
* @var OrderItemInterface $item
Expand Down

0 comments on commit aee6264

Please sign in to comment.