File tree Expand file tree Collapse file tree 1 file changed +1
-9
lines changed Expand file tree Collapse file tree 1 file changed +1
-9
lines changed Original file line number Diff line number Diff line change @@ -57,22 +57,14 @@ public function resolve(ClassMethod | Function_ | Closure $node): array
57
57
): ?int {
58
58
// entering new scope - break!
59
59
if ($ node instanceof FunctionLike && ! $ node instanceof ArrowFunction) {
60
- return NodeTraverser::STOP_TRAVERSAL ;
60
+ return NodeTraverser::DONT_TRAVERSE_CURRENT_AND_CHILDREN ;
61
61
}
62
62
63
63
if ($ node instanceof Foreach_) {
64
64
// handled above
65
65
return NodeTraverser::DONT_TRAVERSE_CURRENT_AND_CHILDREN ;
66
66
}
67
67
68
- /**
69
- * The Node that doesn't have origNode attribute yet
70
- * means the Node is a replacement below other changed node
71
- */
72
- if (! $ node ->hasAttribute (AttributeKey::ORIGINAL_NODE )) {
73
- return NodeTraverser::DONT_TRAVERSE_CURRENT_AND_CHILDREN ;
74
- }
75
-
76
68
if (! $ node instanceof Variable) {
77
69
return null ;
78
70
}
You can’t perform that action at this time.
0 commit comments