Skip to content

Validator: relax parameter typehints - #244

Open
xificurk wants to merge 2 commits into
nette:masterfrom
xificurk:validator-typehints
Open

Validator: relax parameter typehints#244
xificurk wants to merge 2 commits into
nette:masterfrom
xificurk:validator-typehints

Conversation

@xificurk

Copy link
Copy Markdown
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
xificurkforce-pushed the validator-typehints branch from 7d534d8 to 609763bCompareApril 10, 2020 19:14
@dgdg added this to the v4.0 milestone Apr 20, 2020
@xificurk
xificurkforce-pushed the validator-typehints branch from 609763b to 237c9feCompareMay 2, 2020 12:02
@dg
dgforce-pushed the master branch 2 times, most recently from dd9d4ef to 458607dCompareMay 15, 2020 10:07
@dg
dgforce-pushed the master branch 8 times, most recently from ec3633f to 206edb7CompareJune 6, 2020 15:14
@dg
dgforce-pushed the master branch 3 times, most recently from f305a97 to 215a482CompareJuly 13, 2020 12:18
@dg
dgforce-pushed the master branch 3 times, most recently from 4c07b63 to f59c35eCompareJuly 31, 2020 18:03
@dg
dgforce-pushed the master branch 2 times, most recently from d5e7d21 to 6b69042CompareOctober 15, 2020 20:02
@dg
dgforce-pushed the master branch 5 times, most recently from a358616 to cfe069bCompareNovember 2, 2020 15:52
@dg
dgforce-pushed the master branch 7 times, most recently from 2a41d90 to 54858a9CompareFebruary 11, 2021 03:51
@dg
dgforce-pushed the master branch 6 times, most recently from 02ad720 to 3dd3d66CompareMarch 4, 2021 20:03
@dg
dgforce-pushed the master branch 2 times, most recently from f57de1d to d906e2aCompareApril 12, 2021 10:45
@dg
dgforce-pushed the master branch 2 times, most recently from fa3d392 to baff035CompareJune 17, 2021 22:08
@dg
dgforce-pushed the master branch 11 times, most recently from 93eee5a to 7f4b339CompareAugust 29, 2021 13:05
Sign up for freeto 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

@xificurk@dg