You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -23,7 +29,7 @@ final class NoIntegerRefactorReturnRule implements Rule
23
29
/**
24
30
* @var string
25
31
*/
26
-
publicconstERROR_MESSAGE = 'Instead of using int in refactor(), make use of attributes and return always nodeor a null. Using traverser enums might lead to unexpected results';
32
+
publicconstERROR_MESSAGE = 'Instead of using DONT_TRAVERSE_CHILDREN* or STOP_TRAVERSAL in refactor() method, make use of attributes. Return always node, null or REMOVE_NODE. Using traverser enums might lead to unexpected results';
27
33
28
34
publicfunctiongetNodeType(): string
29
35
{
@@ -52,15 +58,61 @@ public function processNode(Node $node, Scope $scope): array
0 commit comments