Skip to content

Commit 8048167

Browse files
committed
PHPLIB-222: Pass UTCDateTime constructor argument as integer
1 parent 765ff28 commit 8048167

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/GridFS/SpecFunctionalTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ private function convertTypes(array $data, $createBinary = true)
154154
if (isset($value['$date'])) {
155155
// TODO: This is necessary until PHPC-536 is implemented
156156
$milliseconds = floor((new DateTime($value['$date']))->format('U.u') * 1000);
157-
$value = new UTCDateTime($milliseconds);
157+
$value = new UTCDateTime((int) $milliseconds);
158158
return;
159159
}
160160

0 commit comments

Comments
 (0)