diff --git a/src/Subscription.php b/src/Subscription.php index 8a548637..ce0da32e 100644 --- a/src/Subscription.php +++ b/src/Subscription.php @@ -1156,6 +1156,10 @@ public function latestInvoice() */ public function upcomingInvoice(array $options = []) { + if ($this->canceled()) { + return null; + } + return $this->owner->upcomingInvoice(array_merge([ 'subscription' => $this->stripe_id, ], $options));