File tree Expand file tree Collapse file tree 2 files changed +13
-2
lines changed Expand file tree Collapse file tree 2 files changed +13
-2
lines changed Original file line number Diff line number Diff line change @@ -88,12 +88,19 @@ public function enterNode(Node $node): void
88
88
return ;
89
89
}
90
90
91
+ if ($ node instanceof Node \Stmt \Interface_) {
92
+ foreach (range ($ node ->getStartLine (), $ node ->getEndLine ()) as $ line ) {
93
+ $ this ->unsets [$ line ] = true ;
94
+ }
95
+
96
+ return ;
97
+ }
98
+
91
99
if ($ node instanceof Node \Stmt \Declare_ ||
92
100
$ node instanceof Node \Stmt \DeclareDeclare ||
93
101
$ node instanceof Node \Stmt \Else_ ||
94
102
$ node instanceof Node \Stmt \EnumCase ||
95
103
$ node instanceof Node \Stmt \Finally_ ||
96
- $ node instanceof Node \Stmt \Interface_ ||
97
104
$ node instanceof Node \Stmt \Label ||
98
105
$ node instanceof Node \Stmt \Namespace_ ||
99
106
$ node instanceof Node \Stmt \Nop ||
Original file line number Diff line number Diff line change @@ -563,13 +563,17 @@ public function withMultilineStrings()
563
563
interface MyInterface
564
564
{
565
565
public const MY_INTERFACE_CONST = 1 ;
566
+ public const MY_INTERFACE_COMPLEX_CONST = [
567
+ 1 ,
568
+ 'string ' ,
569
+ ];
566
570
public function myMethod ();
567
571
}
568
572
569
573
trait MyTrait
570
574
{
571
575
public function myTrait ()
572
- {} // +1
576
+ {} // +3
573
577
}
574
578
575
579
abstract class MyAbstractClass implements MyInterface
You can’t perform that action at this time.
0 commit comments