Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Subset rule broken when subset array is empty #286

Open
rodrigochetto375 opened this issue Jun 5, 2019 · 0 comments
Open

Subset rule broken when subset array is empty #286

rodrigochetto375 opened this issue Jun 5, 2019 · 0 comments

Comments

@rodrigochetto375
Copy link

Hi,
When creating subset rules dynamically and pass the subset array (the second parameter) and is empty, I receive a php warning.

What I try to do is something like this
$v->rule('subset', 'colors', []);

Same problem when do it with $v->rules.

Screenshot from 2019-06-05 16-49-20
Screenshot from 2019-06-05 16-49-48

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant