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

add DateRule (#602) #646

Merged
merged 12 commits into from
Jan 26, 2024
Merged

add DateRule (#602) #646

merged 12 commits into from
Jan 26, 2024

Conversation

pamparam83
Copy link
Contributor

Q A
Is bugfix?
New feature? ✔️
Breaks BC?

Copy link

codecov bot commented Jan 11, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (b8af2d7) 94.49% compared to head (a0a4d49) 94.59%.

Additional details and impacted files
@@             Coverage Diff              @@
##             master     #646      +/-   ##
============================================
+ Coverage     94.49%   94.59%   +0.10%     
- Complexity      780      797      +17     
============================================
  Files            91       93       +2     
  Lines          2380     2425      +45     
============================================
+ Hits           2249     2294      +45     
  Misses          131      131              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@samdark samdark linked an issue Jan 12, 2024 that may be closed by this pull request
src/Rule/Date.php Outdated Show resolved Hide resolved
src/Rule/Date.php Outdated Show resolved Hide resolved
src/Rule/Date.php Outdated Show resolved Hide resolved
src/Rule/DateTime.php Outdated Show resolved Hide resolved
Copy link
Member

@vjik vjik left a comment

Choose a reason for hiding this comment

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

Why need to split rules to Date and DateTime?
Why need pattern in Date? Seems, format is enough.

src/Rule/Date.php Outdated Show resolved Hide resolved
@pamparam83
Copy link
Contributor Author

pamparam83 commented Jan 21, 2024

@vjik I deleted the Date left the DateTime

src/Rule/DateTimeHandler.php Outdated Show resolved Hide resolved
tests/Rule/DateTimeTest.php Outdated Show resolved Hide resolved
src/Rule/DateTimeHandler.php Outdated Show resolved Hide resolved
Copy link
Member

@Tigrov Tigrov left a comment

Choose a reason for hiding this comment

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

CHANGELOG.md Outdated Show resolved Hide resolved
Co-authored-by: Sergei Tigrov <[email protected]>
@samdark
Copy link
Member

samdark commented Jan 25, 2024

StyleCI doesn't matter much. It will automatically fix style anyway.

@samdark samdark requested a review from vjik January 26, 2024 11:24
@samdark samdark merged commit e71f972 into yiisoft:master Jan 26, 2024
22 of 27 checks passed
@samdark
Copy link
Member

samdark commented Jan 26, 2024

Thank you!

@pamparam83 pamparam83 deleted the add-date-rule branch January 29, 2024 16:30
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.

Date and datetime string validator
4 participants