File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -91,6 +91,7 @@ public function enterNode(Node $node): void
9191 if ($ node instanceof Node \Stmt \Declare_ ||
9292 $ node instanceof Node \Stmt \DeclareDeclare ||
9393 $ node instanceof Node \Stmt \Else_ ||
94+ $ node instanceof Node \Stmt \EnumCase ||
9495 $ node instanceof Node \Stmt \Finally_ ||
9596 $ node instanceof Node \Stmt \Interface_ ||
9697 $ node instanceof Node \Stmt \Label ||
@@ -116,12 +117,13 @@ public function enterNode(Node $node): void
116117 return ;
117118 }
118119
119- if ($ node instanceof Node \Stmt \Function_ ||
120+ if ($ node instanceof Node \Stmt \Enum_ ||
121+ $ node instanceof Node \Stmt \Function_ ||
120122 $ node instanceof Node \Stmt \Class_ ||
121123 $ node instanceof Node \Stmt \ClassMethod ||
122124 $ node instanceof Node \Expr \Closure ||
123125 $ node instanceof Node \Stmt \Trait_) {
124- $ isConcreteClassLike = $ node instanceof Node \Stmt \Class_ || $ node instanceof Node \Stmt \Trait_;
126+ $ isConcreteClassLike = $ node instanceof Node \Stmt \Enum_ || $ node instanceof Node \ Stmt \ Class_ || $ node instanceof Node \Stmt \Trait_;
125127
126128 if (null !== $ node ->stmts ) {
127129 foreach ($ node ->stmts as $ stmt ) {
You can’t perform that action at this time.
0 commit comments