Skip to content

Add support for a custom node visitor to override the default #5

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

Merged
merged 3 commits into from
Dec 2, 2021
Merged

Add support for a custom node visitor to override the default #5

merged 3 commits into from
Dec 2, 2021

Conversation

johnbillion
Copy link
Contributor

This adds a --visitor=<file> flag which works much like the --finder=<file> flag and allows a custom node visitor instance to be provided. This allows for custom pre- or post-processing of nodes, in particular their docblock.

Enables php-stubs/wordpress-stubs#21

@szepeviktor
Copy link
Member

Thank you, John!
Have you seen the failing unit tests?

@szepeviktor
Copy link
Member

Zuper 🦸‍♂️

@szepeviktor szepeviktor merged commit 53c2cbb into php-stubs:master Dec 2, 2021
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