Skip to content

Commit ba41fa3

Browse files
committed
Use 'subDays(1)'
1 parent cd3f775 commit ba41fa3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Jalalian.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -356,7 +356,7 @@ public function subDays(int $days = 1): Jalalian
356356

357357
public function subDay(): Jalalian
358358
{
359-
return static::fromCarbon($this->toCarbon()->subDays(1));
359+
return $this->subDays(1);
360360
}
361361

362362
/**

0 commit comments

Comments
 (0)