Skip to content

Add getBounds() method to range values#492

Draft
Tigrov wants to merge 5 commits into
masterfrom
range-bounds
Draft

Add getBounds() method to range values#492
Tigrov wants to merge 5 commits into
masterfrom
range-bounds

Conversation

@Tigrov

@Tigrov Tigrov commented Jun 15, 2026

Copy link
Copy Markdown
Member
Q A
Is bugfix?
New feature? ✔️
Breaks BC?
Fixed issues

@vjik vjik left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good.

Add new methods descriptions and psalm-types for results.

Comment thread src/Expression/Int8RangeValue.php
@Tigrov Tigrov requested a review from vjik June 15, 2026 14:24
/**
* @template T
*/
interface RangeValueInterface extends ExpressionInterface

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will this interface be used in the application? It seems we will always be working with a specific implementation.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is only required to limit return types of AbstractRangeColumn and AbstractMultiRangeColumn, currently using annotations, but in the next major release changing method signatures.
Also user-defined range types can realize it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants