Skip to content

Commit

Permalink
Merge branch 'main' into make-remove-dump-data-dead-code-rector-confi…
Browse files Browse the repository at this point in the history
…gurable
  • Loading branch information
GeniJaho authored Oct 17, 2024
2 parents 9635e17 + 3fbbe3f commit 171cd2d
Showing 1 changed file with 3 additions and 14 deletions.
17 changes: 3 additions & 14 deletions src/Rector/Class_/AnonymousMigrationsRector.php
Original file line number Diff line number Diff line change
Expand Up @@ -78,19 +78,8 @@ public function refactor(Node $node): ?Node
return null;
}

return new Return_(new New_(new Class_(
null,
[
'flags' => $node->flags,
'extends' => $node->extends,
'implements' => $node->implements,
'stmts' => $node->stmts,
'attrGroups' => $node->attrGroups,
],
[
'startLine' => $node->getStartLine(),
'endLine' => $node->getEndLine(),
]
)));
$node->name = null;

return new Return_(new New_($node));
}
}

0 comments on commit 171cd2d

Please sign in to comment.