Skip to content

chore: explicitly declare ext-tokenizer as PHP extension #418

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

drupol
Copy link

@drupol drupol commented Jul 21, 2025

This project relies on the tokenizer PHP extension, but it is not explicitly declared in composer.json. It is assumed to be available in the PHP distribution, which is not always the case. This package makes use of several T_* constants, which require the tokenizer extension. Without it, the following error may occur:

Fatal error: Uncaught Error: Undefined constant "Microsoft\PhpParser\T_CLASS_C" in ...

This PR adds the missing ext-tokenizer requirement to the require section.

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.

1 participant