How to generate a new class with Rector? #7965
|
Hi, To be more clear, the task is to generate multiple classes in different namespaces based on another single class. Or maybe there is a way to move a class to different namespace with Rector Thank you. |
Answered by
samsonasik
Jun 11, 2023
Replies: 1 comment
|
You may looking for You can use native file_put_contents to fill the file with the contents. |
0 replies
Answer selected by
samsonasik
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You may looking for
BetterStandardPrinter::prettyPrintFile():rector/src/PhpParser/Printer/BetterStandardPrinter.php
Line 129 in 0155766
You can use native file_put_contents to fill the file with the contents.