- Fixed setTime return value
This commit is contained in:
1 parent
f6bbdda137
commit
f197443871
1 file changed
+2
-2
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user