Skip to content

Commit

Permalink
Static analysis fix
Browse files Browse the repository at this point in the history
  • Loading branch information
uphlewis committed Dec 4, 2024
1 parent 25eda71 commit 3bfa0a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Enhance/Provider.php
Original file line number Diff line number Diff line change
Expand Up @@ -487,7 +487,7 @@ protected function getSubscriptionInfo(
}

$subscription = $this->api()->subscriptions()
->getSubscription($customerId, $subscriptionId ?? $website->getSubscriptionId());
->getSubscription($customerId, $subscriptionId);

if ($subscription->getStatus() == Status::DELETED) {
$this->errorResult('Subscription terminated', ['subscription' => $subscription->jsonSerialize()]);
Expand Down

0 comments on commit 3bfa0a7

Please sign in to comment.