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 protected property type error from ParserAbstract on Php8.php on 4.19.3 #1029

Closed
wants to merge 1 commit into from

Conversation

samsonasik
Copy link
Contributor

version 4.19.3 cause error:

PHP Fatal error:  Type of PhpParser\Parser\Php8::$tokenToSymbolMapSize must not be defined (as in class PhpParser\ParserAbstract) in /home/runner/work/rector-src/rector-src/vendor/nikic/php-parser/lib/PhpParser/Parser/Php8.php on line 19

This PR fix it.

Fixes #1028

@samsonasik
Copy link
Contributor Author

Ready to merge 👍

@nikic
Copy link
Owner

nikic commented Sep 29, 2024

Ooops, I made a mistake when backporting a change from master. This file shouldn't exist at all.

@nikic
Copy link
Owner

nikic commented Sep 29, 2024

I removed the file and released 4.19.4. Does everything work now?

@samsonasik
Copy link
Contributor Author

testing it at rectorphp/rector-src#6338

@samsonasik
Copy link
Contributor Author

it seems working ok now, thank you 👍

@samsonasik samsonasik closed this Sep 29, 2024
@samsonasik samsonasik deleted the fix-type-php8 branch September 29, 2024 15:13
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