← All changes
|
includes/sdk/google/brick/math/src/Exception/IntegerOverflowException.php
+3
-7
1.2.2
→
1.4.1
View file →
| @@ -1,10 +1,10 @@ | ||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | 3 | declare (strict_types=1); |
| 4 | -namespace Dudlewebs\WPMCS\Brick\Math\Exception; | |
| 4 | +namespace Dudlewebs\WPMCS\GCP\Brick\Math\Exception; | |
| 5 | 5 | |
| 6 | -use Dudlewebs\WPMCS\Brick\Math\BigInteger; | |
| 6 | +use Dudlewebs\WPMCS\GCP\Brick\Math\BigInteger; | |
| 7 | 7 | /** |
| 8 | 8 | * Exception thrown when an integer overflow occurs. |
| 9 | 9 | */ |
| 10 | 10 | class IntegerOverflowException extends MathException |
| @@ -9,15 +9,11 @@ | ||
| 9 | 9 | */ |
| 10 | 10 | class IntegerOverflowException extends MathException |
| 11 | 11 | { |
| 12 | 12 | /** |
| 13 | - * @param BigInteger $value | |
| 14 | - * | |
| 15 | - * @return IntegerOverflowException | |
| 16 | - * | |
| 17 | 13 | * @psalm-pure |
| 18 | 14 | */ |
| 19 | - public static function toIntOverflow(BigInteger $value): IntegerOverflowException | |
| 15 | + public static function toIntOverflow(BigInteger $value) : IntegerOverflowException | |
| 20 | 16 | { |
| 21 | 17 | $message = '%s is out of range %d to %d and cannot be represented as an integer.'; |
| 22 | 18 | return new self(\sprintf($message, (string) $value, \PHP_INT_MIN, \PHP_INT_MAX)); |
| 23 | 19 | } |