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 missing type annotations in AST nodes #946

Merged
merged 1 commit into from Sep 18, 2023

Conversation

rainx
Copy link
Contributor

@rainx rainx commented Sep 18, 2023

Description

After upgrading to v5.0.0, there were some missing type annotations in the AST nodes class which those types were correctly annotated in v4.x

What does this PR do

Add the missing types

Why did we find this issue?

I am working on a project that generates TypeScript type definition files for the PHP Parser dumped AST nodes(by -j option of the CLI command). those types should be generated automatically through the PHP source code, it depends on the type annotation to infer the proper TS types.

It works very well for v4. today, I tried to migrate it to v5. and when I rerun the generate script. I found the missing types.

@rainx rainx force-pushed the add-missing-type-annotations branch from b0c4bc6 to 4399603 Compare September 18, 2023 16:15
@rainx rainx force-pushed the add-missing-type-annotations branch from 4399603 to 78c07af Compare September 18, 2023 16:17
@nikic nikic merged commit f4961b8 into nikic:master Sep 18, 2023
9 checks passed
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.

None yet

2 participants