Commit 8048167a authored by Jeremy Mikola's avatar Jeremy Mikola

PHPLIB-222: Pass UTCDateTime constructor argument as integer

parent 765ff28c
...@@ -154,7 +154,7 @@ class SpecFunctionalTest extends FunctionalTestCase ...@@ -154,7 +154,7 @@ class SpecFunctionalTest extends FunctionalTestCase
if (isset($value['$date'])) { if (isset($value['$date'])) {
// TODO: This is necessary until PHPC-536 is implemented // TODO: This is necessary until PHPC-536 is implemented
$milliseconds = floor((new DateTime($value['$date']))->format('U.u') * 1000); $milliseconds = floor((new DateTime($value['$date']))->format('U.u') * 1000);
$value = new UTCDateTime($milliseconds); $value = new UTCDateTime((int) $milliseconds);
return; return;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment