Commit 150f511
refactor(bcround): Remove unsupported RoundingMode implementations
Remove version-dependent support for TowardsZero, AwayFromZero, and NegativeInfinity RoundingMode enums. These modes now consistently throw ValueError with clear error messages across all PHP versions, preparing for future proper implementation.
Changes:
- Update convertRoundingMode() to throw ValueError for unsupported modes
- Remove PHP version checks for these specific modes
- Update all related test cases to expect ValueError exceptions
- Improve test coverage for supported modes (HalfAwayFromZero, HalfTowardsZero, HalfEven, HalfOdd)
- Add comprehensive enum compatibility tests
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <[email protected]>1 parent 442eb87 commit 150f511
2 files changed
+260
-103
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1015 | 1015 | | |
1016 | 1016 | | |
1017 | 1017 | | |
1018 | | - | |
1019 | | - | |
1020 | | - | |
1021 | | - | |
1022 | | - | |
1023 | | - | |
1024 | | - | |
1025 | | - | |
1026 | | - | |
| 1018 | + | |
| 1019 | + | |
| 1020 | + | |
| 1021 | + | |
1027 | 1022 | | |
1028 | 1023 | | |
1029 | 1024 | | |
| |||
0 commit comments