mirror of
https://gitlab.com/signalytic/client-external/streamline/streamline-emr.git
synced 2026-09-13 03:31:31 +00:00
The latest images incorporate all changes previously added by the dockerfiles. The arm image however is still missing/unreliable from the registry and must be built independently.
24 lines
526 B
PHP
24 lines
526 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace Brick\Math\Exception;
|
|
|
|
use Brick\Math\BigInteger;
|
|
|
|
/**
|
|
* Exception thrown when an integer overflow occurs.
|
|
*/
|
|
class IntegerOverflowException extends MathException
|
|
{
|
|
/**
|
|
* @psalm-pure
|
|
*/
|
|
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));
|
|
}
|
|
}
|