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\ExceptionCode
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));
}