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

Allow to use certain rules as class attributes #1522

Merged
merged 1 commit into from
Jan 16, 2025

Conversation

henriquemoody
Copy link
Member

There are a few cases in which we want to validate the object as a whole, and that validation could be attached to the class as a PHP attribute. This commit enables that capability and changes a few rules to be class attributes.

@henriquemoody henriquemoody added this to the 3.0 milestone Jan 16, 2025
Copy link

codecov bot commented Jan 16, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 96.66%. Comparing base (848724e) to head (94d53df).
Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff            @@
##               main    #1522   +/-   ##
=========================================
  Coverage     96.66%   96.66%           
- Complexity     1019     1020    +1     
=========================================
  Files           206      206           
  Lines          2545     2548    +3     
=========================================
+ Hits           2460     2463    +3     
  Misses           85       85           

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

There are a few cases in which we want to validate the object as a
whole, and that validation could be attached to the class as a PHP
attribute. This commit enables that capability and changes a few rules
to be class attributes.
@henriquemoody henriquemoody merged commit 94d53df into Respect:main Jan 16, 2025
8 checks passed
@henriquemoody henriquemoody deleted the rule/attributes branch January 16, 2025 10:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant