Skip to content

Commit

Permalink
Use 'subDays(1)'
Browse files Browse the repository at this point in the history
  • Loading branch information
majidalaeinia committed Mar 22, 2023
1 parent cd3f775 commit ba41fa3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Jalalian.php
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,7 @@ public function subDays(int $days = 1): Jalalian

public function subDay(): Jalalian
{
return static::fromCarbon($this->toCarbon()->subDays(1));
return $this->subDays(1);
}

/**
Expand Down

0 comments on commit ba41fa3

Please sign in to comment.