View Issue Details

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

Relates 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 Reproduce

The 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
2021-12-08 11:19 derick Status new => acknowledged
2021-12-08 11:19 derick Product Version 3.1.0 => 3.2dev