Skip to content

Range parsers with tests b#93

Closed
Gerych1984 wants to merge 6 commits into
yiisoft:masterfrom
Gerych1984:range-parsers-with-tests-b
Closed

Range parsers with tests b#93
Gerych1984 wants to merge 6 commits into
yiisoft:masterfrom
Gerych1984:range-parsers-with-tests-b

Conversation

@Gerych1984

Copy link
Copy Markdown
Contributor
Q A
Is bugfix?
New feature? ✔️
Breaks BC?

Comment thread src/RangeParser.php
return [$min, $max];
}

private static function parseNumRange(?string $lower, ?string $upper, bool $includeLower, bool $includeUpper): array

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.

bool $includeLower, bool $includeUpper they are not used within the method.

@Gerych1984 Gerych1984 Nov 26, 2021

Copy link
Copy Markdown
Contributor Author

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

Comment thread src/RangeParser.php
return [$min, $max];
}

private static function parseTsRange(?string $lower, ?string $upper, bool $includeLower, bool $includeUpper): array

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.

bool $includeLower, bool $includeUpper they are not used within the method.

Comment thread src/RangeParser.php
return [$min, $max];
}

private static function parseTsTzRange(?string $lower, ?string $upper, bool $includeLower, bool $includeUpper): array

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.

bool $includeLower, bool $includeUpper they are not used within the method.

@samdark

samdark commented Jul 24, 2023

Copy link
Copy Markdown
Member

@Gerych1984 do you have time to rebase this PR and adjust it based on comments?

@Gerych1984

Copy link
Copy Markdown
Contributor Author

@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

@Gerych1984 Gerych1984 closed this Aug 2, 2023
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.

4 participants