Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. HRTime.php

function HRTime::ensureNanoSecondsInRange

Throws

InvalidArgumentException

1 call to HRTime::ensureNanoSecondsInRange()
HRTime::__construct in vendor/phpunit/phpunit/src/Event/Value/Telemetry/HRTime.php

File

vendor/phpunit/phpunit/src/Event/Value/Telemetry/HRTime.php, line 98

Class

HRTime
@psalm-immutable

Namespace

PHPUnit\Event\Telemetry

Code

private function ensureNanoSecondsInRange(int $nanoseconds) : void {
    if ($nanoseconds > 999999999) {
        throw new InvalidArgumentException('Value for nanoseconds must not be greater than 999999999.');
    }
}
RSS feed
Powered by Drupal