Skip to content

Commit

Permalink
[Billing] Fix customer plan manager
Browse files Browse the repository at this point in the history
  • Loading branch information
that-guy-iain committed Jul 20, 2024
1 parent 09110c5 commit f7c0268
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/Parthenon/Billing/Plan/CustomerPlanInfo.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,11 @@ public function getLimitCount(CustomerInterface $customer, string $limitCode): i

foreach ($plan->getLimits() as $code => $limit) {
if ($limitCode === $code) {
$count += $limit['limit'];
if (is_array($limit)) {
$count += $limit['limit'];
} else {
$count += $limit;
}
}
}
}
Expand Down

0 comments on commit f7c0268

Please sign in to comment.