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

[Renaming] Add RenameAttributeRector #6009

Merged
merged 1 commit into from
Jun 22, 2024
Merged

Conversation

TomasVotruba
Copy link
Member

No description provided.

@TomasVotruba TomasVotruba merged commit 82c7838 into main Jun 22, 2024
35 of 36 checks passed
@TomasVotruba TomasVotruba deleted the tv-add-rename-attribute branch June 22, 2024 17:11
if ($this->isName($attr->name, $renameAttribute->getOldAttribute())) {
$attr->name = new FullyQualified($renameAttribute->getNewAttribute());

$hasChanged = true;
Copy link
Member

Choose a reason for hiding this comment

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

Here needs continue 2, if already renamed, continue to next attr

Copy link
Member Author

Choose a reason for hiding this comment

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

Got it, thanks 👍

}
CODE_SAMPLE
,
[]
Copy link
Member

Choose a reason for hiding this comment

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

configurable code example should have entry example

Copy link
Member Author

Choose a reason for hiding this comment

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

Thanks 👍 Fixed in next commit

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