You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, thanks for providing this library. I have the following solution to allow "string or null", and will provide it below. However, if there is a better way to do this, please let me know.
First a null validator:
/** * Class to allow nulls */classAllowNullextends \Filterus\Filter
{
publicfunctionfilter($var)
{
return$var;
}
publicfunctionvalidate($var)
{
returnis_null($var);
}
}
Hi, thanks for providing this library. I have the following solution to allow "string or null", and will provide it below. However, if there is a better way to do this, please let me know.
First a null validator:
Then register like so:
Finally use in a pool:
The text was updated successfully, but these errors were encountered: