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

Remove src/constants.php for T_ENUM and T_NAME_RELATIVE #5143

Merged
merged 2 commits into from
Oct 8, 2023

Conversation

samsonasik
Copy link
Member

The register was happen 2 years ago:

ac7a03f

due to nikic/php-parser 4.10.5, which reportered on issue:

which seems now already registered on defineCompatibilityTokens() method:

https://github.com/nikic/PHP-Parser/blob/a6303e50c90c355c7eeee2c4a8b27fe8dc8fef1d/lib/PhpParser/Lexer.php#L438-L443

Based on that, it seems we no longer require to add it so it seems src/constants.php no longer needed.

@samsonasik
Copy link
Member Author

@TomasVotruba packages tests error seems due to the "files" is loaded too early

PHP Warning:  require(/home/runner/work/rector-src/rector-src/vendor/composer/../rector/rector-src/src/constants.php): Failed to open stream: No such file or directory in /home/runner/work/rector-src/rector-src/vendor/composer/autoload_real.php on line 41

https://github.com/rectorphp/rector-src/actions/runs/6446174604/job/17501018964?pr=5143#step:7:10

that this may need to be merged first

@TomasVotruba
Copy link
Member

Let's try this one 🙂

@TomasVotruba TomasVotruba merged commit 49fda93 into main Oct 8, 2023
33 of 41 checks passed
@TomasVotruba TomasVotruba deleted the remove-constants branch October 8, 2023 08:12
samsonasik added a commit that referenced this pull request Oct 10, 2023
* Remove src/constants.php

* remove include
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