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

Sprunje incorrectly handling empty arrays when exporting to CSV #697

Closed
alexweissman opened this issue Apr 24, 2017 · 2 comments
Closed
Assignees
Labels
confirmed bug Something isn't working
Milestone

Comments

@alexweissman
Copy link
Member

I get this notice: Array to string conversion in /Users/alexw/dev/htdocs/btoms/app/vendor/league/csv/src/Writer.php on line 112, and the string "Array" in the CSV file, when an entity has an empty child collection that Sprunje has attempted to flatten for the purposes of writing to CSV.

@alexweissman alexweissman added the confirmed bug Something isn't working label Apr 24, 2017
@alexweissman alexweissman added this to the 4.0 milestone Apr 24, 2017
@alexweissman alexweissman self-assigned this Apr 24, 2017
@alexweissman
Copy link
Member Author

Hey, this one's not our fault! Looks like it is due to this change to array_dot in Laravel: laravel/framework#13009

@alexweissman
Copy link
Member Author

Fixed by just manually checking for empty arrays. See 5c21d64.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
confirmed bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant