Is your feature request related to a problem? Please describe.
Avoid counting messages in local code I guess? not really a particular problem
Describe the solution you'd like
Check if the messages is not null / not empty to verify if validation fails.
Describe alternatives you've considered
The alternative is to use the form->isValid() which is no longer something needed.
Additional context
I've been using lately the Validation class separately from the Form class, this is for when I don't do rendering on the client side using the form builder, rather using vue, react or similar. As such I don't usually require a form object in such cases.
Is your feature request related to a problem? Please describe.
Avoid counting messages in local code I guess? not really a particular problem
Describe the solution you'd like
Check if the
messagesis not null / not empty to verify if validation fails.Describe alternatives you've considered
The alternative is to use the
form->isValid()which is no longer something needed.Additional context
I've been using lately the Validation class separately from the Form class, this is for when I don't do rendering on the client side using the form builder, rather using vue, react or similar. As such I don't usually require a form object in such cases.