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

ErrorException in HasRole.php line 79: in_array() expects parameter 2 to be array, object given #56

Closed
camiant opened this issue Jun 9, 2015 · 6 comments

Comments

@camiant
Copy link

camiant commented Jun 9, 2015

Please fix it for L5.1 compatibility

@kodeine
Copy link
Owner

kodeine commented Jun 9, 2015

@camiant
Can you cast the second param as array and test? If that works ill push commit

@camiant
Copy link
Author

camiant commented Jun 9, 2015

works like a charm :)

2015-06-09 23:52 GMT+02:00 Kodeine notifications@github.com:

@camiant https://github.com/camiant
Can you cast the second param as array and test? If that works ill push
commit


Reply to this email directly or view it on GitHub
#56 (comment).

@camiant
Copy link
Author

camiant commented Jun 9, 2015

sorry.. my mistake: I'm not recognized in my very role

2015-06-09 23:52 GMT+02:00 Kodeine notifications@github.com:

@camiant https://github.com/camiant
Can you cast the second param as array and test? If that works ill push
commit


Reply to this email directly or view it on GitHub
#56 (comment).

@camiant
Copy link
Author

camiant commented Jun 9, 2015

line 79 needs to be written as :

return in_array($slug, $roles->toArray());

2015-06-09 23:52 GMT+02:00 Kodeine notifications@github.com:

@camiant https://github.com/camiant
Can you cast the second param as array and test? If that works ill push
commit


Reply to this email directly or view it on GitHub
#56 (comment).

@kodeine
Copy link
Owner

kodeine commented Jun 10, 2015

@camiant
i've pushed the commit. Let me know if that resolves the issue.

@kodeine
Copy link
Owner

kodeine commented Jun 13, 2015

Follow up at #60.

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

No branches or pull requests

2 participants