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 Node::getType() returning an incorrect value for some nodes #1568

Merged
merged 1 commit into from Jul 29, 2022

Conversation

Muqsit
Copy link
Contributor

@Muqsit Muqsit commented Jul 29, 2022

ClassConstantsNode::getType() and ClassPropertiesNode::getType() return the same value: PHPStan_Node_ClassPropertiesNode.
FunctionReturnStatementsNode::getType() and MethodReturnStatementsNode::getType() return the same value: PHPStan_Node_FunctionReturnStatementsNode.
Based on other Node class's getType() retval, the value seems to be unique for each node class and is derived from the class's FQN. Moreover, the two pairs of nodes are isolated (independent) from one another.

@ondrejmirtes ondrejmirtes merged commit 53e0753 into phpstan:1.8.x Jul 29, 2022
@ondrejmirtes
Copy link
Member

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants