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

trim() expects parameter 1 to be string, array given #8

Closed
oelsuser opened this issue Mar 26, 2019 · 1 comment
Closed

trim() expects parameter 1 to be string, array given #8

oelsuser opened this issue Mar 26, 2019 · 1 comment

Comments

@oelsuser
Copy link

I am using Laravel 5.8 and im getting error ""trim() expects parameter 1 to be string, array given".After commenting this mentioned piece of code, it works properly.
if (is_array($data)) {
$data = array_map('trim', $data);
}
Please help me on that asap

@sarfraznawaz2005
Copy link
Owner

sarfraznawaz2005 commented Mar 26, 2019

@oelsuser just keep it commented, that piece of code is not necessary. I will update the code shortly.

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

2 participants