Skip to content

Fix renaming attributed class members#2627

Merged
dantleech merged 21 commits intophpactor:masterfrom
przepompownia:fix-rename-attributed-methods
Apr 6, 2024
Merged

Fix renaming attributed class members#2627
dantleech merged 21 commits intophpactor:masterfrom
przepompownia:fix-rename-attributed-methods

Conversation

@przepompownia
Copy link
Copy Markdown
Contributor

Fix #2577

@przepompownia przepompownia marked this pull request as ready for review March 31, 2024 21:43
@dantleech
Copy link
Copy Markdown
Collaborator

is this a parser bug though? and if not does the same apply to properties?

@przepompownia
Copy link
Copy Markdown
Contributor Author

It doesn't look like a parser bug (additionally, tree-sitter also considers attribute list to be part of method declaration etc).

It seems to be good news - I utilize it in #2629 (moving from an attribute up to method declaration for example).

@przepompownia przepompownia changed the title Fix renaming attributed methods Fix renaming attributed class members Apr 5, 2024
@przepompownia
Copy link
Copy Markdown
Contributor Author

It seems to be ready to review for class members.

@dantleech dantleech merged commit 6478aa0 into phpactor:master Apr 6, 2024
@dantleech
Copy link
Copy Markdown
Collaborator

thanks!

@przepompownia przepompownia deleted the fix-rename-attributed-methods branch April 6, 2024 13:44
@przepompownia
Copy link
Copy Markdown
Contributor Author

Thank you especially for the hint - it significantly reduced investigating.

@przepompownia przepompownia restored the fix-rename-attributed-methods branch August 21, 2025 22:23
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.

Cannot rename property or method if its definition contains any attribute

2 participants