File tree Expand file tree Collapse file tree 2 files changed +12
-3
lines changed Expand file tree Collapse file tree 2 files changed +12
-3
lines changed Original file line number Diff line number Diff line change @@ -129,13 +129,17 @@ public function enterNode(Node $node): void
129
129
$ node instanceof Node \Expr \Closure ||
130
130
$ node instanceof Node \Stmt \Trait_) {
131
131
if ($ node instanceof Node \Stmt \Function_ || $ node instanceof Node \Stmt \ClassMethod) {
132
+ $ unsets = [];
133
+
132
134
foreach ($ node ->getParams () as $ param ) {
133
135
foreach (range ($ param ->getStartLine (), $ param ->getEndLine ()) as $ line ) {
134
- $ this -> unsets [$ line ] = true ;
136
+ $ unsets [$ line ] = true ;
135
137
}
136
138
}
137
139
138
- unset($ this ->unsets [$ node ->getEndLine ()]);
140
+ unset($ unsets [$ node ->getEndLine ()]);
141
+
142
+ $ this ->unsets += $ unsets ;
139
143
}
140
144
141
145
$ isConcreteClassLike = $ node instanceof Node \Stmt \Enum_ || $ node instanceof Node \Stmt \Class_ || $ node instanceof Node \Stmt \Trait_;
Original file line number Diff line number Diff line change @@ -572,12 +572,17 @@ interface MyInterface
572
572
'string ' ,
573
573
];
574
574
public function myMethod ();
575
+ public function multiline (
576
+ \stdClass $ var
577
+ ): \stdClass ;
578
+ public function multilineVoid (
579
+ ): void ;
575
580
}
576
581
577
582
trait MyTrait
578
583
{
579
584
public function myTrait ()
580
- {} // +3
585
+ {} // +5
581
586
}
582
587
583
588
abstract class MyAbstractClass implements MyInterface
You can’t perform that action at this time.
0 commit comments