File tree Expand file tree Collapse file tree 2 files changed +21
-6
lines changed Expand file tree Collapse file tree 2 files changed +21
-6
lines changed Original file line number Diff line number Diff line change @@ -162,7 +162,8 @@ public function enterNode(Node $node): void
162
162
$ node instanceof Node \Stmt \Break_ ||
163
163
$ node instanceof Node \Stmt \Goto_ ||
164
164
$ node instanceof Node \Stmt \Throw_ ||
165
- $ node instanceof Node \Stmt \Label
165
+ $ node instanceof Node \Stmt \Label ||
166
+ $ node instanceof Node \Expr \CallLike
166
167
) {
167
168
$ returnBranch = $ this ->executableLinesGroupedByBranch [$ node ->getStartLine ()];
168
169
$ returnEndLine = $ node ->getEndLine ();
Original file line number Diff line number Diff line change @@ -322,19 +322,19 @@ public function withThrow() // +1
322
322
throw // 0
323
323
new // 0
324
324
\Exception () // 0
325
- ; // 0
326
- ++$ var ; // + 1
327
- } catch (\Exception $ exception ) { // +1
325
+ ; // +2
326
+ ++$ var ; // - 1
327
+ } catch (\Exception $ exception ) { // +2
328
328
++$ var ; // 0
329
329
} catch (\RuntimeException $ re ) { // +1
330
330
} catch (\Throwable $ throwable ) { // +1
331
331
++$ var ; // 0
332
332
} finally { // +1
333
333
++$ var ; // 0
334
- } // -6
334
+ } // -7
335
335
++$ var ; // 0
336
336
}
337
- public function withTernaryOperator () // +7
337
+ public function withTernaryOperator () // +8
338
338
{ // 0
339
339
$ var // 0
340
340
= // 0
@@ -345,4 +345,18 @@ public function withTernaryOperator() // +7
345
345
'b ' // +2
346
346
; // -2
347
347
}
348
+ public function withCall () // +3
349
+ { // 0
350
+ $ var = 1 ; // 0
351
+ $ var = intval ($ var ); // 0
352
+ ++$ var ; // +1
353
+ $ date = new DateTimeImmutable (); // 0
354
+ ++$ var ; // +1
355
+ $ ymd = $ date ->format ('Ymd ' ); // 0
356
+ ++$ var ; // +1
357
+ $ ymd = $ date ?->format('Ymd ' ); // 0
358
+ ++$ var ; // +1
359
+ $ date = DateTime::createFromImmutable ($ date ); // 0
360
+ ++$ var ; // +1
361
+ }
348
362
}
You can’t perform that action at this time.
0 commit comments