Skip to content
This repository has been archived by the owner on May 26, 2023. It is now read-only.

Commit

Permalink
I'm no longer stupid
Browse files Browse the repository at this point in the history
  • Loading branch information
bpuig committed Jun 19, 2021
1 parent 2ebb6a6 commit 99f6ad7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Traits/HasResetDate.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ public function getResetDate(?Carbon $dateFrom = null): Carbon

do {
$period = new Period($this->resettable_interval, $this->resettable_period, $dateFrom ?? $today);
$dateFrom = $period->getEndDate();
} while ($period->getEndDate()->lt($today));

return $period->getEndDate();
Expand Down

0 comments on commit 99f6ad7

Please sign in to comment.