Skip to content

Commit 1ec40f4

Browse files
committed
Revert MathException to extend RuntimeException
Fixes #82
1 parent d0a5c66 commit 1ec40f4

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ All notable changes to this project will be documented in this file.
77
💥 **Breaking changes**
88

99
- `BigDecimal::ofUnscaledValue()` no longer throws an exception if the scale is negative
10+
- `MathException` now extends `RuntimeException` instead of `Exception`; this reverts the change introduced in version `0.11.0` (#82)
1011

1112
**New features**
1213

src/Exception/MathException.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@
77
/**
88
* Base class for all math exceptions.
99
*/
10-
class MathException extends \Exception
10+
class MathException extends \RuntimeException
1111
{
1212
}

0 commit comments

Comments
 (0)