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

fix: rules method overrides already defined rules #575

Merged
merged 1 commit into from
Sep 7, 2023

Conversation

maicol07
Copy link
Contributor

@maicol07 maicol07 commented Aug 2, 2023

Example: Calling required() before rules() doesn't add required to rules

Related to #567

Example: Calling `required()` before `rules()` doesn't add `required` to rules
@what-the-diff
Copy link

what-the-diff bot commented Aug 2, 2023

PR Summary

  • Enhancement in Method for Assigning Field Rules
    A refinement was made in the rules() method found in the Field.php file. The introduction of += operator aids in supplementing the pre-existing set of rules of the field with more, rather than outright replacing them. This allows for more dynamic and flexible rule management.

@binaryk binaryk merged commit c28ed93 into BinarCode:8.x Sep 7, 2023
8 checks passed
@binaryk
Copy link
Collaborator

binaryk commented Sep 7, 2023

Thank you!

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.

None yet

2 participants