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. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
That would be This node documentation might give you more hints: https://github.com/rectorphp/php-parser-nodes-docs#phpparsernodeexprnew_ |
Beta Was this translation helpful? Give feedback.
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_