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

Fix #113 #114

Merged
merged 3 commits into from
Nov 15, 2018
Merged

Fix #113 #114

merged 3 commits into from
Nov 15, 2018

Conversation

filips123
Copy link
Collaborator

@filips123 filips123 commented Oct 9, 2018

It fixes #113.

It adds two separated methods for parsers parseFile() and parseString(). Both then call protected method parse() to complete parsing and handle errors.

Fix for PHP tags in strings still need to be added. It should remove only first and last line if there are <?php, <? or ?>. If possible, other solution should be #113 (comment).
How can I make this?
(fixed in 22b60dc)


This code should work, but maybe there should be better code style and tests.

@hassankhan
Copy link
Owner

hassankhan commented Nov 15, 2018

Hi @filips123, I had forgotten about this PR completely, my apologies.

Is there anything to be improved in particular (with regards to code style and tests)? Having had a brief look over, it seems good to me 👍

@filips123
Copy link
Collaborator Author

It is finished, but code style could maybe be better. What do you think?
Tests are also updated so this could probably be merged.

@hassankhan
Copy link
Owner

Personally, didn't see any major issues with code style 👍 thanks again for your hard work, @filips123, much appreciated 🎉

@hassankhan hassankhan merged commit a2b9931 into hassankhan:develop Nov 15, 2018
@DavidePastore DavidePastore added this to the 2.0.1 milestone Dec 7, 2020
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.

[2.0] __DIR__ in PHP file gets wrong path
3 participants