File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ final class NoInverseException extends RuntimeException implements MathException
1414 /**
1515 * @pure
1616 */
17- public static function noModularInverse (): self
17+ public static function noModularInverse (): NoInverseException
1818 {
1919 return new self ('The modular inverse does not exist. ' );
2020 }
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ final class NumberFormatException extends RuntimeException implements MathExcept
1919 /**
2020 * @pure
2121 */
22- public static function invalidFormat (string $ value ): self
22+ public static function invalidFormat (string $ value ): NumberFormatException
2323 {
2424 return new self (sprintf (
2525 'The given value "%s" does not represent a valid number. ' ,
@@ -32,7 +32,7 @@ public static function invalidFormat(string $value): self
3232 *
3333 * @pure
3434 */
35- public static function charNotInAlphabet (string $ char ): self
35+ public static function charNotInAlphabet (string $ char ): NumberFormatException
3636 {
3737 return new self (sprintf (
3838 'Character %s is not valid in the given alphabet. ' ,
You can’t perform that action at this time.
0 commit comments