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

Handle when "DateTimeImmutable" cannot parse the given date #1494

Merged
merged 1 commit into from
Dec 13, 2024

Conversation

henriquemoody
Copy link
Member

In some cases, "DateTimeImmutable" will throw an exception because it cannot parse the date. In those cases, we shouldn't throw an exception, but instead return a specific result that tells what happened.

In some cases, "DateTimeImmutable" will throw an exception because it
cannot parse the date. In those cases, we shouldn't throw an exception,
but instead return a specific result that tells what happened.
Copy link

codecov bot commented Dec 13, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 97.34%. Comparing base (82cb05b) to head (1093ab3).
Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff            @@
##               main    #1494   +/-   ##
=========================================
  Coverage     97.34%   97.34%           
- Complexity      958      960    +2     
=========================================
  Files           199      199           
  Lines          2334     2337    +3     
=========================================
+ Hits           2272     2275    +3     
  Misses           62       62           

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

@henriquemoody henriquemoody merged commit 1093ab3 into Respect:main Dec 13, 2024
8 checks passed
@henriquemoody henriquemoody deleted the rule/dateTimeDiff branch December 13, 2024 01:43
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.

1 participant