Skip to content

Commit d108327

Browse files
committed
Add 'addDay' method
1 parent 49f0238 commit d108327

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/Jalalian.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -663,6 +663,11 @@ public function addDays(int $days = 1): Jalalian
663663
return static::fromCarbon($this->toCarbon()->addDays($days));
664664
}
665665

666+
public function addDay(): Jalalian
667+
{
668+
return static::fromCarbon($this->toCarbon()->addDays());
669+
}
670+
666671
public function getNextMonth(): Jalalian
667672
{
668673
return $this->addMonths(1);

0 commit comments

Comments
 (0)