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

Validator: relax parameter typehints #244

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

xificurk
Copy link
Contributor

  • new feature
  • BC break? no
  • doc PR: not needed

Some validation methods of form Validator require a specifc type of control instead of generic IControl interface. This means you can't use those validators with custom form controls (e.g. any control based on nextras/form-components). This is especially frustrating for the basic "filled" validator which is used if the form control is marked as required.

This PR relaxes the parameter typehints in backward compatible manner to allow validation of custom controls.

@xificurk xificurk force-pushed the validator-typehints branch from 7d534d8 to 609763b Compare April 10, 2020 19:14
@dg dg added this to the v4.0 milestone Apr 20, 2020
@xificurk xificurk force-pushed the validator-typehints branch from 609763b to 237c9fe Compare May 2, 2020 12:02
@dg dg force-pushed the master branch 2 times, most recently from dd9d4ef to 458607d Compare May 15, 2020 10:07
@dg dg force-pushed the master branch 8 times, most recently from ec3633f to 206edb7 Compare June 6, 2020 15:14
@dg dg force-pushed the master branch 3 times, most recently from f305a97 to 215a482 Compare July 13, 2020 12:18
@dg dg force-pushed the master branch 3 times, most recently from 4c07b63 to f59c35e Compare July 31, 2020 18:03
@dg dg force-pushed the master branch 2 times, most recently from d5e7d21 to 6b69042 Compare October 15, 2020 20:02
@dg dg force-pushed the master branch 5 times, most recently from a358616 to cfe069b Compare November 2, 2020 15:52
@dg dg force-pushed the master branch 4 times, most recently from 49c38f3 to c6f98c1 Compare April 1, 2024 01:05
@dg dg force-pushed the master branch 4 times, most recently from 337f707 to 2146e59 Compare May 2, 2024 10:56
@dg dg force-pushed the master branch 6 times, most recently from 94f43f0 to fe374c5 Compare May 12, 2024 13:07
@dg dg force-pushed the master branch 7 times, most recently from cb844f0 to 1d8a434 Compare August 8, 2024 14:36
@dg dg force-pushed the master branch 2 times, most recently from 479185b to 8da5796 Compare October 22, 2024 18: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.

2 participants