Skip to content

[Performance] Remove NODES_TO_MATCH constant on RemoveNonExistingVarAnnotationRector#4267

Merged
samsonasik merged 1 commit intomainfrom
remove-node
Jun 18, 2023
Merged

[Performance] Remove NODES_TO_MATCH constant on RemoveNonExistingVarAnnotationRector#4267
samsonasik merged 1 commit intomainfrom
remove-node

Conversation

@samsonasik
Copy link
Copy Markdown
Member

RemoveNonExistingVarAnnotationRector was using generic Node as getNodeTypes() which can be any node, and then verify against NODES_TO_MATCH.

This PR move this to the getNodeTypes() to be checked directly to improve performance.

@samsonasik samsonasik requested a review from TomasVotruba as a code owner June 18, 2023 03:40
@samsonasik samsonasik merged commit 392898c into main Jun 18, 2023
@samsonasik samsonasik deleted the remove-node branch June 18, 2023 03:45
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