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

Update Stream.php #332

Merged
merged 1 commit into from Feb 26, 2019
Merged

Update Stream.php #332

merged 1 commit into from Feb 26, 2019

Conversation

ghost
Copy link

@ghost ghost commented Feb 26, 2019

Fix the seek method in League\Csv\Stream.php. If the $position parameter is 0, $offset will become -1.

Fix the seek method in League\Csv\Stream.php. If the $position parameter is 0, $offset will become -1.
@nyamsprod
Copy link
Member

nyamsprod commented Feb 26, 2019

could you:

  • add the tests in StreamTest.php
  • use Yoda style in the if condition

and I'll merge your fix

thanks in advance

@nyamsprod nyamsprod self-assigned this Feb 26, 2019
@nyamsprod nyamsprod added the bug label Feb 26, 2019
@nyamsprod nyamsprod merged commit b1f1516 into thephpleague:master Feb 26, 2019
nyamsprod added a commit that referenced this pull request Feb 26, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant