We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7e4260f commit 3eca791Copy full SHA for 3eca791
1 file changed
src/Contract/Rector/RectorInterface.php
@@ -21,6 +21,15 @@ public function getNodeTypes(): array;
21
/**
22
* Process Node of matched type
23
* @return Node|Node[]|null|int
24
+ *
25
+ * For int return, choose:
26
27
+ * ✔️ To decorate current node and its children to not be traversed on current rule, return one of:
28
+ * - NodeVisitor::DONT_TRAVERSE_CHILDREN
29
+ * - NodeVisitor::DONT_TRAVERSE_CURRENT_AND_CHILDREN
30
31
+ * ✔️ To remove node of Stmt and Param, return:
32
+ * - NodeVisitor::REMOVE_NODE to remove Stmt or Param
33
*/
34
public function refactor(Node $node);
35
}
0 commit comments