Skip to content

Commit

Permalink
Fixed bug that was doing add instead of sub in Day class (#287)
Browse files Browse the repository at this point in the history
  • Loading branch information
norberttech authored Aug 22, 2022
1 parent c292043 commit d885bd8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Aeon/Calendar/Gregorian/Day.php
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ public function addMonths(int $months) : self
*/
public function minusMonths(int $months) : self
{
return $this->addMonths($months);
return $this->subMonths($months);
}

public function subMonths(int $months) : self
Expand Down

0 comments on commit d885bd8

Please sign in to comment.