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

IBX-8224: Added rector rule to remove interface & methods implementations #4

Merged
merged 5 commits into from
Jun 24, 2024

Conversation

ViniTou
Copy link
Contributor

@ViniTou ViniTou commented Jun 17, 2024

🎫 Issue IBX-8224

Description:

For QA:

Documentation:

@ViniTou ViniTou force-pushed the ibx-8224-drop-interface-with-methods branch 2 times, most recently from e593e4f to db39f2e Compare June 17, 2024 08:23
@ViniTou ViniTou force-pushed the ibx-8224-drop-interface-with-methods branch from db39f2e to f4b8e49 Compare June 17, 2024 08:25
@ViniTou ViniTou requested a review from alongosz June 17, 2024 08:26
// Remove method calls, if one of the arguments was removed method
foreach ($node->getMethods() as $classMethod) {
$nodeTraverser = new NodeTraverser();
$nodeTraverser->addVisitor(new class($this->nodeNameResolver, $methods) extends NodeVisitorAbstract {
Copy link
Member

Choose a reason for hiding this comment

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

Can we extract this class to separate file? This would improve a readability a lot.

@konradoboza konradoboza requested a review from a team June 18, 2024 05:11
@ViniTou ViniTou force-pushed the ibx-8224-drop-interface-with-methods branch from 6e3bb1e to f4d9f5f Compare June 18, 2024 06:34
@konradoboza konradoboza requested a review from a team June 18, 2024 07:02
@alongosz alongosz merged commit 3b75943 into main Jun 24, 2024
3 checks passed
@alongosz alongosz deleted the ibx-8224-drop-interface-with-methods branch June 24, 2024 12:08
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.

4 participants