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

MemoizingParser: Fix parent interface misstype of parse() method #371

Closed
wants to merge 1 commit into from
Closed

MemoizingParser: Fix parent interface misstype of parse() method #371

wants to merge 1 commit into from

Conversation

TomasVotruba
Copy link
Contributor

I believe this is PHP 7.2 feature. The parsing fails otherwise

image

@TomasVotruba
Copy link
Contributor Author

Oh, I have dev-master version of PHPParser and this class extends it :/
It has string typehint but this class doesn't.

Any idea how to workaround it?

@Ocramius
Copy link
Member

Can't workaround for now: if PHP-Parser has breaking changes, we'll have to adapt ourselves too

@TomasVotruba TomasVotruba deleted the patch-1 branch September 21, 2017 08:04
@TomasVotruba
Copy link
Contributor Author

Well, it's only in dev-master and God knows, when that's gonna be tagged.

I'll use https://github.com/cweagans/composer-patches for now

@Ocramius
Copy link
Member

@TomasVotruba anything in particular that you rely upon?

@TomasVotruba
Copy link
Contributor Author

@Ocramius
Copy link
Member

Ocramius commented Sep 21, 2017 via email

@TomasVotruba
Copy link
Contributor Author

TomasVotruba commented Sep 21, 2017

Oh. I need format-preserving AST printer - thanks to that I can refactor the code without making it ugly.

Thanks to that I'll be able to partially upgrade app from Symfony 3.0 to 4.0 while keeping the original formatting.

@Ocramius
Copy link
Member

Makes sense, although we won't be able to support both versions of PHP-Parser for now :-\

@TomasVotruba
Copy link
Contributor Author

No problem, I solved this way I'm fine with 👍

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 participants