setRule - Validate doesn't support more than 3 parameters

I am using Grocery CRUD Enterprise version 3.2.7.

The “setRule” function when using the rule ‘listContains’, ‘in’, ‘notIn’, ‘credit_card’ or others that use an array as a parameter and it is possible to enter more than three variables, reports the error “Validate doesn’t support more than 3 parameters”

This is an error in the Validate->validate() function, which only allows for a maximum of three variables in an array. Which is not possible with the above validation rules.

There is also a typo in the Validate->validate() function on line 106:
$validator->rule($rule[‘rule’], $rule[‘fieldName’], $rule[‘parameters’][0], $rule[‘parameters’][1], $rule[‘parameters’][3]);

It should be correctly
$validator->rule($rule[‘rule’], $rule[‘fieldName’], $rule[‘parameters’][0], $rule[‘parameters’][1], $rule[‘parameters’][2]);


Sorry.

I wrote the function like this:
$crud->setRule(‘typ_rizeni’, ‘in’, array(‘1’, ‘2’, ‘3’) ) ;
because I thought it was correct

But when I looked into the Validator->validateIn() function, it should be correct like this:
$crud->setRule(‘typ_rizeni’, ‘in’, array(array(‘1’, ‘2’, ‘3’)) ) ;

It could be mentioned in the description of the “setRule” function on the page

because it is not very understandable even from the description on the page

I think the example given here:
$crud->setRule(‘credit_card’, ‘creditCard’, [‘visa’, ‘mastercard’])
is badly written in my opinion