← All changes
|
includes/sdk/google/brick/math/src/Exception/DivisionByZeroException.php
+4
-10
1.2.13
→
1.4.1
View file →
| @@ -1,8 +1,8 @@ | ||
| 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 | 6 | /** |
| 7 | 7 | * Exception thrown when a division by zero occurs. |
| 8 | 8 | */ |
| @@ -8,31 +8,25 @@ | ||
| 8 | 8 | */ |
| 9 | 9 | class DivisionByZeroException extends MathException |
| 10 | 10 | { |
| 11 | 11 | /** |
| 12 | - * @return DivisionByZeroException | |
| 13 | - * | |
| 14 | 12 | * @psalm-pure |
| 15 | 13 | */ |
| 16 | - public static function divisionByZero(): DivisionByZeroException | |
| 14 | + public static function divisionByZero() : DivisionByZeroException | |
| 17 | 15 | { |
| 18 | 16 | return new self('Division by zero.'); |
| 19 | 17 | } |
| 20 | 18 | /** |
| 21 | - * @return DivisionByZeroException | |
| 22 | - * | |
| 23 | 19 | * @psalm-pure |
| 24 | 20 | */ |
| 25 | - public static function modulusMustNotBeZero(): DivisionByZeroException | |
| 21 | + public static function modulusMustNotBeZero() : DivisionByZeroException | |
| 26 | 22 | { |
| 27 | 23 | return new self('The modulus must not be zero.'); |
| 28 | 24 | } |
| 29 | 25 | /** |
| 30 | - * @return DivisionByZeroException | |
| 31 | - * | |
| 32 | 26 | * @psalm-pure |
| 33 | 27 | */ |
| 34 | - public static function denominatorMustNotBeZero(): DivisionByZeroException | |
| 28 | + public static function denominatorMustNotBeZero() : DivisionByZeroException | |
| 35 | 29 | { |
| 36 | 30 | return new self('The denominator of a rational number cannot be zero.'); |
| 37 | 31 | } |
| 38 | 32 | } |