Skip to content

[Renaming] Add RenameAttributeRector#6009

Merged
TomasVotruba merged 1 commit intomainfrom
tv-add-rename-attribute
Jun 22, 2024
Merged

[Renaming] Add RenameAttributeRector#6009
TomasVotruba merged 1 commit intomainfrom
tv-add-rename-attribute

Conversation

@TomasVotruba
Copy link
Copy Markdown
Member

No description provided.

@TomasVotruba TomasVotruba merged commit 82c7838 into main Jun 22, 2024
@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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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