From 49c6f7077d558c1e8aa897d1cba2292a8def94d5 Mon Sep 17 00:00:00 2001 From: Sean Molenaar Date: Sun, 4 Oct 2020 21:33:03 +0200 Subject: Define microtime as string Closes #835 Signed-off-by: Sean Molenaar --- lib/Utility/Time.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib') diff --git a/lib/Utility/Time.php b/lib/Utility/Time.php index aee1e6358..276a140cd 100644 --- a/lib/Utility/Time.php +++ b/lib/Utility/Time.php @@ -19,9 +19,9 @@ class Time } /** - * @return int the current unix time in miliseconds + * @return string the current unix time in miliseconds */ - public function getMicroTime(): int + public function getMicroTime(): string { list($millisecs, $secs) = explode(" ", microtime()); return $secs . substr($millisecs, 2, 6); -- cgit v1.2.3