Merge remote-tracking branch 'origin/master'
This commit is contained in:
commit
fa9e1eac2f
1 file changed
+4
-2
@@ -246,9 +246,10 @@ trait Accessor
|
|||||||
{
|
{
|
||||||
list($year, $month, $day) = self::getGregorian($year, $month, $day);
|
list($year, $month, $day) = self::getGregorian($year, $month, $day);
|
||||||
|
|
||||||
if(static::isValidDate($year, $month, $day)) {
|
if (static::isValidDate($year, $month, $day)) {
|
||||||
parent::setDate($year, $month, $day);
|
parent::setDate($year, $month, $day);
|
||||||
}
|
}
|
||||||
|
|
||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -269,9 +270,10 @@ trait Accessor
|
|||||||
$minute = $time[1] ?? 0;
|
$minute = $time[1] ?? 0;
|
||||||
$second = $time[2] ?? 0;
|
$second = $time[2] ?? 0;
|
||||||
|
|
||||||
if(static::isValidTime($hour, $minute, $second)) {
|
if (static::isValidTime($hour, $minute, $second)) {
|
||||||
parent::setTime($hour, $minute, $second, 0);
|
parent::setTime($hour, $minute, $second, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user