Skip to content

Commit 0ebc071

Browse files
fix addCalendarMonths() return type
1 parent 6c0fd1b commit 0ebc071

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

system/I18n/TimeTrait.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -752,7 +752,7 @@ public function addMonths(int $months)
752752
/**
753753
* Returns a new Time instance with $months calendar months added to the time.
754754
*/
755-
public function addCalendarMonths(int $months)
755+
public function addCalendarMonths(int $months): static
756756
{
757757
$time = clone $this;
758758

0 commit comments

Comments
 (0)