File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -70,9 +70,9 @@ public function startOfHebrewMonth(): self
70
70
71
71
public function endOfHebrewMonth (): self
72
72
{
73
- $ this ->startOfHebrewMonth ()->addHebrewMonths ()->subDay ();
73
+ $ newDate = $ this -> copy () ->startOfHebrewMonth ()->addHebrewMonths ()->subDay ();
74
74
75
- return self ::createFromJewishDate ($ this ->jewishYear , $ this ->jewishMonth , $ this ->jewishDay );
75
+ return self ::createFromJewishDate ($ newDate ->jewishYear , $ newDate ->jewishMonth , $ newDate ->jewishDay );
76
76
}
77
77
78
78
public function startOfHebrewYear (): self
@@ -85,9 +85,9 @@ public function startOfHebrewYear(): self
85
85
86
86
public function endOfHebrewYear (): self
87
87
{
88
- $ this ->startOfHebrewYear ()->addHebrewYears ()->subDay ();
88
+ $ newDate = $ this -> copy () ->startOfHebrewYear ()->addHebrewYears ()->subDay ();
89
89
90
- return self ::createFromJewishDate ($ this ->jewishYear , $ this ->jewishMonth , $ this ->jewishDay );
90
+ return self ::createFromJewishDate ($ newDate ->jewishYear , $ newDate ->jewishMonth , $ newDate ->jewishDay );
91
91
}
92
92
93
93
public function getDaysPeriod (): Collection
You can’t perform that action at this time.
0 commit comments