Conditions | 4 |
Paths | 3 |
Total Lines | 15 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php declare(strict_types=1); |
||
23 | protected function checkEnvironment(): void |
||
24 | { |
||
25 | if (PHP_VERSION_ID < 70300 && false === static::$ignoreVersionRestrictions) { |
||
26 | // `HRTimer::class` uses `hrtime()` function of PHP ^7.3. |
||
27 | // There is almost no sense in using polyfill function. |
||
28 | // If you're REALLY need to use HRTimer set `$ignoreVersionRestrictions` to true. |
||
29 | // Otherwise use `Timer::class` instance instead. |
||
30 | throw new \RuntimeException('[' . static::class . '] Your php version is below 7.3.0.'); |
||
31 | } |
||
32 | // @codeCoverageIgnoreStart |
||
33 | if (PHP_INT_SIZE < INT_SIZE_64BIT) { |
||
34 | // `HRTimer::class` is designed and tested in 64bit environment |
||
35 | // So it can be used in 64bit environments only |
||
36 | // Maybe with some minor modification it can run on 32bit installations too |
||
37 | throw new \RuntimeException(' You\'re using 32bit php installation.'); |
||
38 | } |
||
42 |