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

Fixed 'Undefined offset: -1' notice. #53

Closed
wants to merge 2 commits into from
Closed

Fixed 'Undefined offset: -1' notice. #53

wants to merge 2 commits into from

Conversation

marceltoben
Copy link

This small change avoids a php notice.

Copy link
Member

@derickr derickr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As this is a parser-only related issue, could you add a test case please?

There is an example data file at https://github.com/zetacomponents/Mail/blob/master/tests/parser/data/various/test-bounced

@danez
Copy link
Contributor

danez commented Nov 16, 2017

I added a test and usedarray_key_exists() instead of isset.

Lots of other tests seem to fail.

@derickr
Copy link
Member

derickr commented Nov 16, 2017

Happy to merge this - but can you please split the commit in two - one for the real fix, and one for the white space changes?

@danez
Copy link
Contributor

danez commented Nov 16, 2017

I removed the whitespace change.

derickr added a commit that referenced this pull request Nov 18, 2017
@derickr
Copy link
Member

derickr commented Nov 18, 2017

Merged (After rebase, and a change). Thanks for helping out @danez and @marceltoben !

@derickr derickr closed this Nov 18, 2017
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.

None yet

4 participants