CoreFiles by mySites.guru
IntegerOverflowException.php27 lines, 612 bytes, from Joomla_4.4.2-Stable-Full_Package.zip
Raw History Compare with 4.4.1
md5
9261a76c9ccccadfe2de89aaca42bf71
sha1
a13082609d6239e69e7f89708c2113a58fed34b5
sha256
61f9e1439cd1c6f76dc88f2d3cfaaea52bfad2a216eea367577395c5a5c96cca
<?php

declare(strict_types=1);

namespace Brick\Math\Exception;

use Brick\Math\BigInteger;

/**
 * Exception thrown when an integer overflow occurs.
 */
class IntegerOverflowException extends MathException
{
    /**
     * @param BigInteger $value
     *
     * @return IntegerOverflowException
     *
     * @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));
    }
}

The same content is in 128 releases, Joomla 4.0.0-beta4 to 4.4.14. See them all, or every version of this file.