Skip to content

Fix use of removed parent attribute on StaticConnectionHelperRector#374

Merged
LordSimal merged 5 commits intocakephp:5.xfrom
samsonasik:fix-use-parent
Jan 6, 2026
Merged

Fix use of removed parent attribute on StaticConnectionHelperRector#374
LordSimal merged 5 commits intocakephp:5.xfrom
samsonasik:fix-use-parent

Conversation

@samsonasik
Copy link
Copy Markdown
Contributor

@samsonasik samsonasik commented Jan 6, 2026

AttributeKey::PARENT_NODE no longer exists from rector 0.17 https://getrector.com/blog/rector-017-brings-more-robust-and-lighter-node-tree

seems this is left over on upgrade and was missing test.

This PR fix it.

@samsonasik
Copy link
Copy Markdown
Contributor Author

@LordSimal ready for review, please check my comment above for possible missing transformation from the start.

@samsonasik
Copy link
Copy Markdown
Contributor Author

Okay, I got it, it show error on tests/TestCase/Command/RectorCommandTest.php https://github.com/cakephp/upgrade/actions/runs/20746419284/job/59564748692?pr=374

@samsonasik
Copy link
Copy Markdown
Contributor Author

samsonasik commented Jan 6, 2026

@LordSimal fixed 🎉 ready to merge 👍

@LordSimal
Copy link
Copy Markdown
Contributor

Thank you 🙇🏻

@LordSimal LordSimal merged commit 5fbb739 into cakephp:5.x Jan 6, 2026
3 checks passed
@samsonasik samsonasik deleted the fix-use-parent branch January 6, 2026 13:00
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