PluginProbe
Media Cloud Sync / 1.3.11
Media Cloud Sync v1.3.11
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.3.11, at includes/sdk/google/brick/math/src/Exception/IntegerOverflowException.php

21 lines 566 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\GCP\Brick\Math\Exception;
5
6 use Dudlewebs\WPMCS\GCP\Brick\Math\BigInteger;
7 /**
8 * Exception thrown when an integer overflow occurs.
9 */
10 class IntegerOverflowException extends MathException
11 {
12 /**
13 * @psalm-pure
14 */
15 public static function toIntOverflow(BigInteger $value) : IntegerOverflowException
16 {
17 $message = '%s is out of range %d to %d and cannot be represented as an integer.';
18 return new self(\sprintf($message, (string) $value, \PHP_INT_MIN, \PHP_INT_MAX));
19 }
20 }
21