Skip to content

Commit

Permalink
Minor fix
Browse files Browse the repository at this point in the history
Signed-off-by: Sam Poyigi <[email protected]>
  • Loading branch information
sampoyigi committed Aug 24, 2024
1 parent 097b354 commit e6282d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Cart/Cart.php
Original file line number Diff line number Diff line change
Expand Up @@ -443,7 +443,7 @@ protected function applyConditionToItem(CartCondition $condition, CartItem $cart
*/
protected function getApplicableItemCondition($condition, $cartItem)
{
if (!in_array(ActsAsItemable::class, class_uses($condition)))
if (!in_array(ActsAsItemable::class, class_uses_recursive($condition)))
return null;

if (!$condition::isApplicableTo($cartItem))
Expand Down

0 comments on commit e6282d0

Please sign in to comment.