We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f8398b4 commit fa5815eCopy full SHA for fa5815e
tests/bson/bug0631.phpt
@@ -5,7 +5,7 @@ PHPC-631: UTCDateTime::toDateTime() may return object that cannot be serialized
5
6
require_once __DIR__ . '/../utils/tools.php';
7
8
-$utcdatetime = new MongoDB\BSON\UTCDateTime(1466540755123);
+$utcdatetime = new MongoDB\BSON\UTCDateTime('1466540755123');
9
$datetime = $utcdatetime->toDateTime();
10
$s = serialize($datetime);
11
0 commit comments