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

Cannot use match as an identifier. It is a reserved keyword since PHP8.0 #217

Closed
arnolanglade opened this issue Dec 8, 2020 · 2 comments

Comments

@arnolanglade
Copy link

I tried to upgrade a project to PHP 8.0 but I got this error:

Parse error: syntax error, unexpected token "match", expecting identifier in /vendor/coduo/php-matcher/src/Matcher/Pattern/Expander/Match.php:10

We cannot use match as an identifier anymore because it is a reserved keyword since PHP 8.0. I don't know if there are other problems with a PHP 8.0 upgrade but this class can be easily renamed. What do you guys think?

@jdreesen
Copy link

jdreesen commented Dec 8, 2020

#215

@arnolanglade
Copy link
Author

👍

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

No branches or pull requests

3 participants