1 Commits
Author SHA1 Message Date
mcndave f197443871 - Fixed setTime return value 2026-10-22 17:28:00 +00:00
+2 -2
View File
@@ -26,7 +26,7 @@ trait DatetimeTrait
return $obj;
}
public function setTime($hour, $minute, $second = 0, $microsecond = 0) : \DateTimeInterface
public function setTime($hour, $minute, $second = 0, $microsecond = 0) : \DateTime
{
$fromParent = parent::setTime($hour, $minute, $second, $microsecond);
@@ -65,4 +65,4 @@ trait DatetimeTrait
{
return $this;
}
}
}