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

[5.2] Array to string conversion issue in validateIn() method #14607

Merged
merged 1 commit into from
Aug 4, 2016
Merged

[5.2] Array to string conversion issue in validateIn() method #14607

merged 1 commit into from
Aug 4, 2016

Conversation

vigneshgurusamy
Copy link
Contributor

validateIn() method does not handle multidimensional array. For example, When a multidimensional array passed for below mentioned rule

$rules = [
    'name' => 'sometimes|array|in:foo,bar
];

It will throw an Array to string conversion exception, because array_diff() used to compare the array

@vigneshgurusamy vigneshgurusamy changed the title Fix - Array to string conversion issue in validateIn() method [5.2] Array to string conversion issue in validateIn() method Aug 3, 2016
@taylorotwell taylorotwell merged commit 89db15c into laravel:5.2 Aug 4, 2016
@vigneshgurusamy vigneshgurusamy deleted the fix-validateIn branch August 4, 2016 13:31
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

Successfully merging this pull request may close these issues.

2 participants