View Issue Details

IDProjectCategoryView StatusLast Update
0002027XdebugCode Coveragepublic2021-12-08 11:19
Reporterdvdoug Assigned To 
Status acknowledgedResolutionopen 
Product Version3.2dev 
Summary0002027: Branch/path code coverage for traits drops trait name since 3.1.0

Relates to

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.

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

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 Reproduce

The testcase from will show this

TagsNo tags attached.
Operating System
PHP Version8.0.5-8.0.9


There are no notes attached to this issue.

Issue History

Date Modified Username Field Change
2021-10-04 20:50 dvdoug New Issue
2021-12-08 11:19 derick Status new => acknowledged
2021-12-08 11:19 derick Product Version 3.1.0 => 3.2dev