How force set param in every use of "new Class(...., $param)" #8233
|
I'm having trouble creating my own rule. The problem I wanted to solve e,g, please help, or give me some hints. |
Answered by
TomasVotruba
Sep 26, 2023
Replies: 1 comment
|
That would be This node documentation might give you more hints: https://github.com/rectorphp/php-parser-nodes-docs#phpparsernodeexprnew_ |
0 replies
Answer selected by
TomasVotruba
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
That would be
New_node. Then$node->getArgs()called on it.This node documentation might give you more hints: https://github.com/rectorphp/php-parser-nodes-docs#phpparsernodeexprnew_