-
-
Notifications
You must be signed in to change notification settings - Fork 13
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
Range parsers with tests b #93
Conversation
Gerych1984
commented
Nov 2, 2021
Q | A |
---|---|
Is bugfix? | ❌ |
New feature? | ✔️ |
Breaks BC? | ❌ |
return [$min, $max]; | ||
} | ||
|
||
private static function parseNumRange(?string $lower, ?string $upper, bool $includeLower, bool $includeUpper): array |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
bool $includeLower, bool $includeUpper
they are not used within the method.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I will fix that and add new short immutable methods like withType
, asInt
, asNum
etc at nearest time
return [$min, $max]; | ||
} | ||
|
||
private static function parseTsRange(?string $lower, ?string $upper, bool $includeLower, bool $includeUpper): array |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
bool $includeLower, bool $includeUpper
they are not used within the method.
return [$min, $max]; | ||
} | ||
|
||
private static function parseTsTzRange(?string $lower, ?string $upper, bool $includeLower, bool $includeUpper): array |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
bool $includeLower, bool $includeUpper
they are not used within the method.
@Gerych1984 do you have time to rebase this PR and adjust it based on comments? |
Yes. I haven't forgotten about this and this PR. I'll try to find time to get them in the right shape |