-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feature: Added generic default classes
Feature: All traits support \JsonSerializable. IsCollectionType and derivatives support \Iterator. Feature: Added Percentage and Email classes Feature: Several new methods on IsCollectionType (merge, withMerged, pop, popMultiple, split, shuffle, withReversedOrder) Improvement: Psalm annotations for IDE type hints and autocompletion. Use @extends to make use of it (see README examples) Improvement: More specific error message when adding/subtracting values that bring the total above maximum/below minimum allowed value Improvement: InvalidValue renders different types better instead of wrapping everything in double quotes Improvement: Option to get $reasons back from ConversionError after instantiation Dev: Library tested against PHP 8.4 (no changes were necessary) Dev: Upgraded PhpUnit from 9 to 11.5 and Infection from don't-remember to 0.29.0 (latest) Dev: Upgrades improved MSI from 97% to 99%, MCC from 98% to 99% and CC-MCI from 98% to 100%. ---------------------------------- Squashed commit of the following: commit c211916 Author: Jay Atkins <[email protected]> Date: Tue Dec 24 12:39:03 2024 +0000 Misc: Updated README and CHANGELOG commit a486b47 Author: Jay Atkins <[email protected]> Date: Tue Dec 24 00:23:24 2024 +0000 Improvement: Added jsonSerialize to all types, and implemented \JsonSerializable in generic classes. Updated README.md. Added required tests and ran test suite. Re-ran Infection and looked through infection.log. Only false positives left. Updated badges. commit 903a5af Author: Jay Atkins <[email protected]> Date: Sun Dec 22 22:10:22 2024 +0000 Tests: Upgraded from Phpunit 10.5 to 11.5 (this was a forced update, as the testdox option was removed in 10.5 but brought back in 11.5)* Tests: Run Infection and fixed any true issues (ignoring false positives of course) Tests: Changed from using @Covers, @uses, @dataProvider, @Depends to using relevant attributes Running the tests with testdox means that only errors are printed, not every single assertion with a tick or an X. For over 1,500 assertions, it meant that finding errors was incredibly frustrating and time-consuming. In PhpUnit 11.5 it is called testdoxSummary, as opposed to testdox (as it was called in PHPUnit 8), and isn't available at all in PhpUnit 9.5. commit 215d8a0 Author: Jay Atkins <[email protected]> Date: Sun Dec 22 17:38:16 2024 +0000 Feature: Added more methods to IsCollectionType. - `merge` - `withMerged` - `pop` - `popMultiple` - `split` - `shuffle` - `withReversedOrder` Tests: Added missing Unit tests and fixed pre-existing ones. Back to 100% test coverage. Tests: Ran all tests against PHP 8.4. No changes to code required - all tests successful. Misc: Updated CHANGELOG.md TODO: - Update README.md - Run Infection and fix accordingly. commit 07c4da4 Author: Jay Atkins <[email protected]> Date: Sun Jun 23 13:12:23 2024 +0100 WIP: Added Any* classes and made changes to ConversionError TODO: Re-run all tests
- Loading branch information
Jay Atkins
committed
Dec 24, 2024
1 parent
6dcdba3
commit b4ae1ed
Showing
89 changed files
with
2,813 additions
and
1,996 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,5 @@ | ||
LIBRARY_NAME=value-types | ||
USER_ID=1000 | ||
USER_ID=1000 | ||
|
||
# Used by composer | ||
COMPOSER_ROOT_VERSION=2.7 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
v20.15.0 |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.