Skip to content

[Renaming] Remove callables from class renames to avoid missed rename bugs, better handle with PHSPtan and custom rule#4745

Merged
TomasVotruba merged 1 commit intomainfrom
tv-remove-callable
Aug 9, 2023
Merged

[Renaming] Remove callables from class renames to avoid missed rename bugs, better handle with PHSPtan and custom rule#4745
TomasVotruba merged 1 commit intomainfrom
tv-remove-callable

Conversation

@TomasVotruba
Copy link
Copy Markdown
Member

@TomasVotruba TomasVotruba commented Aug 9, 2023

I'm thinking about this rule in retrospect and it seems it's crossing border with PHPStan and IDE fetaures.
While it might be benefitical for automated fixes of architecture standard, it's leaking feature of dynamic coding to the tool.

It doesn't seem useful to public nor standard sets. Instead these should be handled in a custom Rector rule or better required by PHPStan, as probably is already :)

I wan to keep IDE features and dynamic code sepeate, as we focus mainly on strict and clear no-brainer refactorings. Morover with upcoming GPT coding that goes the opposite way.
Saying that I'll withdraw this feature to keep Rector robuts and focuses.


Also, there might happen bug there class is rename, but it's usage is not, because it was already processed.

… bugs, better handle with PHSPtan and custom rule
@TomasVotruba TomasVotruba merged commit b232946 into main Aug 9, 2023
@TomasVotruba TomasVotruba deleted the tv-remove-callable branch August 9, 2023 16:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant