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

Breadcrumb

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

function IntegerOverflowException::toIntOverflow

@psalm-pure

1 call to IntegerOverflowException::toIntOverflow()
BigInteger::toInt in vendor/brick/math/src/BigInteger.php
Returns the exact value of this number as a native integer.

File

vendor/brick/math/src/Exception/IntegerOverflowException.php, line 17

Class

IntegerOverflowException
Exception thrown when an integer overflow occurs.

Namespace

Brick\Math\Exception

Code

public static function toIntOverflow(BigInteger $value) : IntegerOverflowException {
    $message = '%s is out of range %d to %d and cannot be represented as an integer.';
    return new self(\sprintf($message, (string) $value, PHP_INT_MIN, PHP_INT_MAX));
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal