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

move valid check to beginning of loop #3

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

bendavies
Copy link

@bendavies bendavies commented Feb 4, 2019

I'm seeing an issue with a CSV I have where this line
https://github.com/portphp/csv/blob/master/src/CsvReader.php#L116
is coming back as false on the last line.
Switching the do while to a while loop fixes this, but I can't work out why it's happening or replicate it in a test.

Anyway, it doesn't break any existing tests.

@rodnaph
Copy link
Contributor

rodnaph commented Jan 29, 2021

This fixes an issue I'm having trying to use CsvReader with the OneToManyReader 👍

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.

3 participants