Skip to content

Commit

Permalink
Merge pull request #50 from zans-laksa/cart-item-remove-issue
Browse files Browse the repository at this point in the history
Cart item removal issue
  • Loading branch information
lianastaskevica authored Nov 30, 2020
2 parents ebfc1f0 + be3e4d8 commit cee8013
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Model/Resolver/GetCartForCustomer.php
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ private function getAppliedTaxes(AddressInterface $address): array
$taxes = $this->serializer->unserialize($taxes);
}

return array_values($taxes);
return is_array($taxes) ? array_values($taxes) : [];
}

/**
Expand Down

0 comments on commit cee8013

Please sign in to comment.