mirror of
https://github.com/linuxserver/Heimdall.git
synced 2025-12-03 05:29:53 +09:00
Update to laravel 7
This commit is contained in:
15
vendor/symfony/polyfill-php73/Php73.php
vendored
15
vendor/symfony/polyfill-php73/Php73.php
vendored
@@ -1,5 +1,14 @@
|
||||
<?php
|
||||
|
||||
/*
|
||||
* This file is part of the Symfony package.
|
||||
*
|
||||
* (c) Fabien Potencier <fabien@symfony.com>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
namespace Symfony\Polyfill\Php73;
|
||||
|
||||
/**
|
||||
@@ -19,8 +28,8 @@ final class Php73
|
||||
*/
|
||||
public static function hrtime($asNum = false)
|
||||
{
|
||||
$ns = \microtime(false);
|
||||
$s = \substr($ns, 11) - self::$startAt;
|
||||
$ns = microtime(false);
|
||||
$s = substr($ns, 11) - self::$startAt;
|
||||
$ns = 1E9 * (float) $ns;
|
||||
|
||||
if ($asNum) {
|
||||
@@ -29,6 +38,6 @@ final class Php73
|
||||
return \PHP_INT_SIZE === 4 ? $ns : (int) $ns;
|
||||
}
|
||||
|
||||
return array($s, (int) $ns);
|
||||
return [$s, (int) $ns];
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user