-
-
Notifications
You must be signed in to change notification settings - Fork 54
feat: add support for range types #396
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
+4,046
−1
Merged
Changes from 15 commits
Commits
Show all changes
25 commits
Select commit
Hold shift + click to select a range
b971ee0
feat: add support for range types
martin-georgiev 31c9707
Drop AI noise that is not strictly required.
martin-georgiev 978996e
Drop AI noise that is not strictly required.
martin-georgiev 036661f
Address code duplication
martin-georgiev 22da0b0
Add the correct integration tests
martin-georgiev 7c94c0e
Simplify unit tests
martin-georgiev d937631
Improve error handling
martin-georgiev 692c233
Merge branch 'main' into range-types
martin-georgiev 6a4ab35
Narrow down interfaced method
martin-georgiev ecb779e
Use template for BaseRangeTestCase
martin-georgiev c1a439d
Accept errors as a known PHPStan limitation rather than worked around…
martin-georgiev 75bd932
Add basic documentation
martin-georgiev b70f8c3
Add examples for range's VO and DT usage
martin-georgiev 2f55bcb
Add more tests
martin-georgiev bf9b2c7
Fix broken tests
martin-georgiev 7e62726
YAGNI tests
martin-georgiev 3a48123
add PHPStan template annotations and suppress covariant generics
martin-georgiev 7bb57d1
Merge branch 'main' into range-types
martin-georgiev 6b3613b
cs-fixer applied
martin-georgiev d4bed1a
RangeOperatorsTest array operators and range containment expectations
martin-georgiev 98d0c37
RangeOperatorsTest array operators and range containment expectations
martin-georgiev 4f04cc9
cs fixer
martin-georgiev a883515
Update README.md
martin-georgiev 59e2136
less words = clear docs
martin-georgiev 0371c36
Merge branch 'range-types' of https://github.com/martin-georgiev/post…
martin-georgiev File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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,25 @@ | ||
parameters: | ||
ignoreErrors: | ||
- | ||
message: '#^Method MartinGeorgiev\\Doctrine\\DBAL\\Types\\ValueObject\\Range\:\:empty\(\) should return static\(MartinGeorgiev\\Doctrine\\DBAL\\Types\\ValueObject\\Range\<R of DateTimeInterface\|float\|int\>\) but returns static\(MartinGeorgiev\\Doctrine\\DBAL\\Types\\ValueObject\\Range\<DateTimeInterface\|float\|int\>\)\.$#' | ||
identifier: return.type | ||
count: 1 | ||
path: ../../../src/MartinGeorgiev/Doctrine/DBAL/Types/ValueObject/Range.php | ||
|
||
- | ||
message: '#^Method MartinGeorgiev\\Doctrine\\DBAL\\Types\\ValueObject\\Range\:\:fromString\(\) should return static\(MartinGeorgiev\\Doctrine\\DBAL\\Types\\ValueObject\\Range\<R of DateTimeInterface\|float\|int\>\) but returns static\(MartinGeorgiev\\Doctrine\\DBAL\\Types\\ValueObject\\Range\<DateTimeInterface\|float\|int\>\)\.$#' | ||
identifier: return.type | ||
count: 2 | ||
path: ../../../src/MartinGeorgiev/Doctrine/DBAL/Types/ValueObject/Range.php | ||
|
||
- | ||
message: '#^Method MartinGeorgiev\\Doctrine\\DBAL\\Types\\ValueObject\\Range\:\:infinite\(\) should return static\(MartinGeorgiev\\Doctrine\\DBAL\\Types\\ValueObject\\Range\<R of DateTimeInterface\|float\|int\>\) but returns static\(MartinGeorgiev\\Doctrine\\DBAL\\Types\\ValueObject\\Range\<DateTimeInterface\|float\|int\>\)\.$#' | ||
identifier: return.type | ||
count: 1 | ||
path: ../../../src/MartinGeorgiev/Doctrine/DBAL/Types/ValueObject/Range.php | ||
|
||
- | ||
message: '#^Unsafe usage of new static\(\)\.$#' | ||
identifier: new.static | ||
count: 4 | ||
path: ../../../src/MartinGeorgiev/Doctrine/DBAL/Types/ValueObject/Range.php |
This file contains hidden or 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 hidden or 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 hidden or 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.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.