1
0
mirror of https://github.com/danog/amp.git synced 2024-11-26 20:15:00 +01:00

Ignore code coverage for getCurrentTime on 32 bit

This commit is contained in:
Niklas Keller 2019-05-31 20:42:02 +02:00
parent 72a0db5cdc
commit f824f0df1d

View File

@ -63,6 +63,7 @@ function getCurrentTime(): int
static $nextWarning;
if (\PHP_INT_SIZE === 4) {
// @codeCoverageIgnoreStart
if ($startTime === null) {
$startTime = \PHP_VERSION_ID >= 70300 ? \hrtime(false)[0] : \time();
$nextWarning = \PHP_INT_MAX - 86400 * 7;
@ -99,6 +100,7 @@ function getCurrentTime(): int
}
return $seconds * 1000;
// @codeCoverageIgnoreEnd
}
if (\PHP_VERSION_ID >= 70300) {