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.4] Fix for error when pass an array as second argument to gate #17972

Merged
merged 1 commit into from
Feb 17, 2017
Merged

[5.4] Fix for error when pass an array as second argument to gate #17972

merged 1 commit into from
Feb 17, 2017

Conversation

MCMatters
Copy link
Contributor

Hi, we have a problem with this code. We have policy function that accepts an array, but we got an exception when we pass an array as second argument to Gate::allows, because previously it checked for is_string before

@MCMatters MCMatters changed the title Fix for error when pass an array as second argument to gate [5.4] Fix for error when pass an array as second argument to gate Feb 17, 2017
@taylorotwell taylorotwell merged commit 4fbd2a3 into laravel:5.4 Feb 17, 2017
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