Commit bc7fcff
committed
Remove unused integer type interfaces, exception classes, and redundant methods
- Removed `BaseTypeInterface`, `IntTypeInterface`, `TypeException`, and `IntegerTypeException` as they were no longer used.
- Replaced integer validation logic with `Webmozart\Assert` for better readability and usability.
- Refactored integer type classes (`Integer`, `PositiveInt`, `NonNegativeInt`, `WeekDayInt`) to improve consistency and reduce complexity.
- Adjusted test cases to align with new validation behavior and exception handling.
- Updated `composer.json` to replace `symfony/polyfill-php83` with `webmozart/assert`.
- Refined `psalm` configuration and tests for the newly streamlined codebase.1 parent e91084a commit bc7fcff
File tree
33 files changed
+222
-353
lines changed- .github/workflows
- docker
- php
- docs
- src
- BaseType
- Contract
- Exception
- Type/Integer
- tests
- Arch
- Unit
- BaseType
- Type/Integer
33 files changed
+222
-353
lines changedFile mode changed.
File mode changed.
File mode changed.
File mode changed.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | | - | |
| 29 | + | |
30 | 30 | | |
31 | 31 | | |
32 | | - | |
| 32 | + | |
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
| 38 | + | |
38 | 39 | | |
39 | 40 | | |
40 | 41 | | |
41 | 42 | | |
42 | 43 | | |
43 | 44 | | |
| 45 | + | |
44 | 46 | | |
45 | 47 | | |
46 | 48 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
File mode changed.
File mode changed.
File mode changed.
File mode changed.
0 commit comments