File tree Expand file tree Collapse file tree 1 file changed +12
-2
lines changed
src/CodeCoverage/Report/Node Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -505,11 +505,21 @@ protected function calculateStatistics()
505
505
}
506
506
507
507
foreach ($ this ->traits as &$ trait ) {
508
- $ this ->calcAndApplyClassAggregate ($ trait , $ trait ['traitName ' ]);
508
+ $ fqcn = $ trait ['traitName ' ];
509
+ if (!empty ($ trait ['package ' ]['namespace ' ])) {
510
+ $ fqcn = $ trait ['package ' ]['namespace ' ] . '\\' . $ fqcn ;
511
+ }
512
+
513
+ $ this ->calcAndApplyClassAggregate ($ trait , $ fqcn );
509
514
}
510
515
511
516
foreach ($ this ->classes as &$ class ) {
512
- $ this ->calcAndApplyClassAggregate ($ class , $ class ['className ' ]);
517
+ $ fqcn = $ class ['className ' ];
518
+ if (!empty ($ class ['package ' ]['namespace ' ])) {
519
+ $ fqcn = $ class ['package ' ]['namespace ' ] . '\\' . $ fqcn ;
520
+ }
521
+
522
+ $ this ->calcAndApplyClassAggregate ($ class , $ fqcn );
513
523
}
514
524
}
515
525
You can’t perform that action at this time.
0 commit comments