We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7df46b4 commit dcb2c6eCopy full SHA for dcb2c6e
src/Models/Subscription.php
@@ -112,7 +112,7 @@ public function renew(?Carbon $expirationDate = null): self
112
$expirationDate = $this->getRenewedExpiration($expirationDate);
113
$graceDaysEndedAt = null;
114
115
- if ($this->plan->grace_days) {
+ if ($this->plan->grace_days && $expirationDate) {
116
$graceDaysEndedAt = $expirationDate->copy()->addDays($this->plan->grace_days);
117
}
118
0 commit comments