View Issue Details

IDProjectCategoryView StatusLast Update
0002027XdebugCode Coveragepublic2021-10-04 20:50
Reporterdvdoug Assigned To 
PrioritynormalSeveritymajorReproducibilityalways
Status newResolutionopen 
Product Version3.1.0 
Summary0002027: Branch/path code coverage for traits drops trait name since 3.1.0
DescriptionRelates to https://bugs.xdebug.org/view.php?id=1938

In versions of Xdebug prior to 3.1.0, traits and classes were treated the same from an output point of view. Under the functions key, there would be an array with each entry being of the format FQCN->methodName.

With Xdebug 3.1, the FQCN part is no longer included for traits.

Before:
App\FooTrait->returnsTrue => [...]

Currently:
returnsTrue{trait-method:/src/FooTrait.php:9-16} => [...]

Desired (assuming the annotation has to stay):
App\FooTrait->returnsTrue{trait-method:/src/FooTrait.php:9-16} => [...]
Steps To ReproduceThe testcase from https://bugs.xdebug.org/view.php?id=1938 will show this
TagsNo tags attached.
Operating System
PHP Version8.0.5-8.0.9

Activities

There are no notes attached to this issue.

Issue History

Date Modified Username Field Change
2021-10-04 20:50 dvdoug New Issue