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

Bump PHP-Parser #1354

Merged
merged 2 commits into from
Oct 21, 2020
Merged

Bump PHP-Parser #1354

merged 2 commits into from
Oct 21, 2020

Conversation

sanmai
Copy link
Member

@sanmai sanmai commented Oct 19, 2020

This PR:

PHP-Parser had an issue, but apparently it's gone in newer versions. It is still there:

PHP Fatal error:  Uncaught Error: Undefined constant '_HumbugBox2855bd3aa92c\T_NAME_QUALIFIED' 
in phar:///infection.phar/vendor/nikic/php-parser/lib/PhpParser/Lexer.php:301

@maks-rafalko
Copy link
Member

Did I get it right that we can't merge it? (because of that issue)

@sanmai
Copy link
Member Author

sanmai commented Oct 19, 2020

No, we can't. Phar build is broken.

@sanmai
Copy link
Member Author

sanmai commented Oct 20, 2020

I think I'll leave thing handing just on the off chance @theofidry can know what's up here.

@sanmai sanmai requested review from maks-rafalko and removed request for maks-rafalko October 21, 2020 10:27
@sanmai
Copy link
Member Author

sanmai commented Oct 21, 2020

@maks-rafalko Now I can build it just fine locally.

'T_NAME_RELATIVE',
'T_MATCH',
'T_NULLSAFE_OBJECT_OPERATOR',
'T_ATTRIBUTE',
Copy link
Member Author

@sanmai sanmai Oct 21, 2020

Choose a reason for hiding this comment

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

Taken from here:

https://github.com/nikic/PHP-Parser/blob/1d1bc8a36459d67acef508b952dad097960b110e/lib/PhpParser/Lexer.php#L413-L425

PHP-Scooper does not know that it must whitelist these otherwise.

Copy link
Member

Choose a reason for hiding this comment

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

Copy link
Member Author

@sanmai sanmai Oct 21, 2020

Choose a reason for hiding this comment

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

Absolutely. I thought there must be something like this, but couldn't find this straight away.

humbug/php-scoper#418

Copy link
Member

@maks-rafalko maks-rafalko left a comment

Choose a reason for hiding this comment

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

👍

@sanmai sanmai merged commit 8d6c4d6 into infection:master Oct 21, 2020
@sanmai sanmai deleted the pr/2020-10/PhpParser branch October 21, 2020 12:42
@sanmai
Copy link
Member Author

sanmai commented Oct 21, 2020

This should be not very hard to backport.

sanmai added a commit to sanmai/infection that referenced this pull request Oct 21, 2020
* Whitelist PHP 8.0 constants in scoper.inc.php
sanmai added a commit to sanmai/infection that referenced this pull request Oct 21, 2020
* Whitelist PHP 8.0 constants in scoper.inc.php
@sanmai sanmai mentioned this pull request Oct 21, 2020
3 tasks
maks-rafalko pushed a commit that referenced this pull request Oct 21, 2020
* Bump PHP-Parser (#1354)

* Whitelist PHP 8.0 constants in scoper.inc.php

* Fix PHPStan warning
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.

Installation failed: Conclusion: remove nikic/php-parser v4.10.2
3 participants