Skip to content

Commit 065cdaa

Browse files
authored
Merge pull request #41 from PhantPHP/Fix-date-interval
Fix date interval
2 parents 84f5262 + f4811e4 commit 065cdaa

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

component/Time/DateInterval.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ public function isAfter(
8383
public static function make(
8484
null|int|string $from,
8585
null|int|string $to
86-
): self {
86+
): static {
8787
if (is_string($from) || is_int($from)) {
8888
$from = new Date($from);
8989
}

component/Time/DateTimeInterval.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ public function isAfter(
8383
public static function make(
8484
null|int|string $from,
8585
null|int|string $to
86-
): self {
86+
): static {
8787
if (is_string($from) || is_int($from)) {
8888
$from = new DateTime($from);
8989
}

0 commit comments

Comments
 (0)