-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
PhpOffice\PhpSpreadsheet\Reader\Csv::inferSeparator() generate a notice with empty file #337
Comments
Would you submit a PR to fix that and cover it with unit tests ? |
I encountered a similar issue when I tried to load an invalid CSV file for testing purposes using Laravel's We have an upload form for CSV files, the uploaded files are read using Unfortunately I do not have the time to take a deeper look into this problem myself. |
@floriandammeyer e31878c should help with your case. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. |
…hen the file is empty
Fixed by PR #743. |
This is:
What is the expected behavior?
IOFactory should load empty csv file.
What is the current behavior?
IOFactory generates a notice when we load an empty csv file.
What are the steps to reproduce?
Which versions of PhpSpreadsheet and PHP are affected?
My env:
The text was updated successfully, but these errors were encountered: