Skip to content

Commit

Permalink
magento#758: Cart applied_taxes of empty cart can be null
Browse files Browse the repository at this point in the history
  • Loading branch information
Tobias Westfeld authored Jun 28, 2019
1 parent f77ac3c commit ab2f3de
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ private function getAppliedTaxes(Total $total, string $currency): array
$appliedTaxesData = [];
$appliedTaxes = $total->getAppliedTaxes();

if (count($appliedTaxes) === 0) {
if ($appliedTaxes === null || count($appliedTaxes) === 0) {
return $appliedTaxesData;
}

Expand Down

0 comments on commit ab2f3de

Please sign in to comment.