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

Reset validation result #22

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

Reset validation result #22

wants to merge 1 commit into from

Conversation

KovYu
Copy link

@KovYu KovYu commented May 20, 2024

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

Copy link

codecov bot commented May 20, 2024

Codecov Report

Attention: Patch coverage is 0% with 2 lines in your changes are missing coverage. Please review.

Project coverage is 96.07%. Comparing base (f4fd174) to head (1ba6016).
Report is 5 commits behind head on master.

Files Patch % Lines
src/ValidatedInputTrait.php 0.00% 2 Missing ⚠️
Additional details and impacted files
@@              Coverage Diff              @@
##              master      #22      +/-   ##
=============================================
- Coverage     100.00%   96.07%   -3.93%     
- Complexity        20       21       +1     
=============================================
  Files              4        4              
  Lines             53       51       -2     
=============================================
- Hits              53       49       -4     
- Misses             0        2       +2     

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

Copy link
Member

@xepozz xepozz left a comment

Choose a reason for hiding this comment

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

Tests are necessary

@@ -32,4 +32,9 @@ public function getValidationResult(): Result

return $this->validationResult;
}

public function resetValidation(): void
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
public function resetValidation(): void
public function resetResult(): void

Copy link
Member

Choose a reason for hiding this comment

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

May be resetValidationResult() better?

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.

Needs test, line in changelog and notes in UPGRADE.md (this is major change).

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.

3 participants