forms icon indicating copy to clipboard operation
forms copied to clipboard

Validator: relax parameter typehints

Open xificurk opened this issue 5 years ago • 0 comments

  • 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 avatar Apr 10 '20 18:04 xificurk