Skip to content

Commit 7f87455

Browse files
hisingshmax
authored andcommitted
Add microseconds to setTime to support PHP 7.1
1 parent 94b0dd5 commit 7f87455

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/DateTime.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -165,10 +165,10 @@ public function setISODate($year, $week , $day = 1)
165165
return parent::setISODate($year, $week, $day);
166166
}
167167

168-
public function setTime($hour, $minute, $second = 0)
168+
public function setTime($hour, $minute, $second = 0, $microseconds = 0)
169169
{
170170
$this->flag_dirty();
171-
return parent::setTime($hour, $minute, $second);
171+
return parent::setTime($hour, $minute, $second);
172172
}
173173

174174
public function setTimestamp($unixtimestamp)

0 commit comments

Comments
 (0)