Skip to content
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

allow mixing inclusive [] and exclusive {} endpoints in range expression #15

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

speto
Copy link

@speto speto commented Aug 28, 2015

so expressions like “date:[NOW/DAY-1DAY TO NOW/DAY+1DAY}” are possible, more about on http://lucidworks.com/blog/date-math-now-and-filter-queries/

* @return ExpressionInterface
*/
public function range($start = null, $end = null, $inclusive = true)
public function range($start = null, $end = null, $inclusiveFrom = true, $inclusiveTo = false)
Copy link
Contributor

Choose a reason for hiding this comment

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

Shouldn't it be $inclusiveTo = true not to break current $inclusive = true behaviour?

@speto speto force-pushed the master branch 4 times, most recently from 228e815 to ad13ed7 Compare August 28, 2015 10:34
@speto
Copy link
Author

speto commented Aug 28, 2015

@egils Thanks for response, I fixed it and also edit appropriate tests so now CI pass as well. In case of dateRange method and BC break I'm not sure if there is better solution, definitely these changes should be part of new version release

@egils egils self-assigned this Aug 31, 2015
@egils egils removed their assignment Nov 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

2 participants