CLIFramework icon indicating copy to clipboard operation
CLIFramework copied to clipboard

ArgInfo::validate() crippled validator call

Open exteon opened this issue 6 years ago • 0 comments

Using CLIFramework 3: in ArgInfo::validate():

return call_user_func($this->validator);

Unless I am missing something, there is no way for the validator to get the value to validate so validator is kindof pointless. Prolly should be

return call_user_func($this->validator,$value);

exteon avatar Aug 09 '19 21:08 exteon