PluginProbe
Media Cloud Sync / 1.2.6
Media Cloud Sync v1.2.6
1.4.0 1.3.12 1.3.11 1.3.10 trunk 1.0.0 1.0.1 1.0.2 1.0.3 1.1.0 1.1.1 1.2.0 1.2.10 1.2.11 1.2.12 1.2.13 1.2.2 1.2.3 1.2.4 1.2.5 1.2.6 1.2.7 1.2.8 1.2.9 1.3.0 All 34 releases
media-cloud-sync / includes / sdk / google / brick / math / src / Exception / IntegerOverflowException.php

IntegerOverflowException.php in Media Cloud Sync 1.2.6, at includes/sdk/google/brick/math/src/Exception/IntegerOverflowException.php

25 lines 643 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 declare (strict_types=1);
4 namespace Dudlewebs\WPMCS\Brick\Math\Exception;
5
6 use Dudlewebs\WPMCS\Brick\Math\BigInteger;
7 /**
8 * Exception thrown when an integer overflow occurs.
9 */
10 class IntegerOverflowException extends MathException
11 {
12 /**
13 * @param BigInteger $value
14 *
15 * @return IntegerOverflowException
16 *
17 * @psalm-pure
18 */
19 public static function toIntOverflow(BigInteger $value): IntegerOverflowException
20 {
21 $message = '%s is out of range %d to %d and cannot be represented as an integer.';
22 return new self(\sprintf($message, (string) $value, \PHP_INT_MIN, \PHP_INT_MAX));
23 }
24 }
25