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

FEATURE: Improve Node and Node interfaces rewrites #95

Merged
merged 4 commits into from
Nov 20, 2024

Conversation

dlubitz
Copy link
Contributor

@dlubitz dlubitz commented Nov 18, 2024

Improves the rewrites for node related code in general.

Fixes #57
Related: #75

@kitsunet
Copy link
Member

Great work <3
Left a suggestion, but after that IMHO good to go...

return new NodeLegacyStub();
}

public function getNode(): NodeLegacyStub {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

so this thing contains the signature of the original node interface and some of the "forward compatible" changes of the traversable thing ... but this is just a helper during running the migration right? These methods like all the find* and get* would be the todo to be migrated right?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, correct. This is just to enable rector to determine the return type of methods, which not exists anymore.

@mhsdesign mhsdesign merged commit 9794b58 into main Nov 20, 2024
2 checks passed
@mhsdesign mhsdesign deleted the feature/improve-node-rewrites branch November 20, 2024 11:53
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.

Migrate Node::getNodeType
3 participants