File tree Expand file tree Collapse file tree 2 files changed +14
-0
lines changed Expand file tree Collapse file tree 2 files changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -49,9 +49,11 @@ public function enterNode(Node $node): void
4949 $ node instanceof Node \Stmt \DeclareDeclare ||
5050 $ node instanceof Node \Stmt \Class_ ||
5151 $ node instanceof Node \Stmt \ClassConst ||
52+ $ node instanceof Node \Stmt \Interface_ ||
5253 $ node instanceof Node \Stmt \Nop ||
5354 $ node instanceof Node \Stmt \Property ||
5455 $ node instanceof Node \Stmt \PropertyProperty ||
56+ $ node instanceof Node \Stmt \Trait_ ||
5557 $ node instanceof Node \Expr \Variable ||
5658 $ node instanceof Node \Param ||
5759 $ node instanceof Node \Const_ ||
@@ -83,6 +85,7 @@ public function enterNode(Node $node): void
8385 $ node instanceof Node \Expr \Closure
8486 ) {
8587 $ hasEmptyBody = [] === $ node ->stmts ||
88+ null === $ node ->stmts ||
8689 (
8790 1 === count ($ node ->stmts ) &&
8891 $ node ->stmts [0 ] instanceof Node \Stmt \Nop
Original file line number Diff line number Diff line change @@ -441,3 +441,14 @@ public function withCommentsOnly()
441441 */
442442 } // +1
443443}
444+
445+ interface MyInterface
446+ {
447+ public function myMethod ();
448+ }
449+
450+ trait MyTrait
451+ {
452+ public function myTrait ()
453+ {} // +1
454+ }
You can’t perform that action at this time.
0 commit comments