We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6cc75e5 commit c085e7aCopy full SHA for c085e7a
ClockMock.php
@@ -72,7 +72,7 @@ public static function microtime($asFloat = false)
72
return self::$now;
73
}
74
75
- return sprintf('%0.6f00 %d', self::$now - (int) self::$now, (int) self::$now);
+ return \sprintf('%0.6f00 %d', self::$now - (int) self::$now, (int) self::$now);
76
77
78
public static function date($format, $timestamp = null): string
@@ -101,7 +101,7 @@ public static function hrtime($asNumber = false)
101
$ns = (self::$now - (int) self::$now) * 1000000000;
102
103
if ($asNumber) {
104
- $number = sprintf('%d%d', (int) self::$now, $ns);
+ $number = \sprintf('%d%d', (int) self::$now, $ns);
105
106
return \PHP_INT_SIZE === 8 ? (int) $number : (float) $number;
107
0 commit comments