View Issue Details

IDProjectCategoryView StatusLast Update
0002187XdebugCode Coveragepublic2023-08-01 09:44
Reporterkama Assigned Toderick  
PrioritynormalSeverityminorReproducibilityalways
Status feedbackResolutionopen 
Product Version3.2.2 
Summary0002187: Code coverage misses constructor property promotion code with parent::__construct call
Description

Constructor property promotion does not get marked as covered

Steps To Reproduce
<?php
class DownloadEvent extends Event
{
    public function __construct(
        Type $type,
        private readonly int $Id,
    ) {
        parent::__construct($type);
    }
}
Additional Information

similar to https://bugs.xdebug.org/bug_view_page.php?bug_id=00001910

TagsNo tags attached.
Operating System
PHP Version8.1.10-8.1.19

Activities

derick

2023-08-01 09:44

administrator   ~0006617

Do you have a full set of sample code that I can actually run? — the contents of your test case, and a minimal implementation of Event should do it.

Issue History

Date Modified Username Field Change
2023-07-18 05:37 kama New Issue
2023-08-01 09:41 derick Steps to Reproduce Updated
2023-08-01 09:44 derick Assigned To => derick
2023-08-01 09:44 derick Status new => feedback
2023-08-01 09:44 derick Note Added: 0006617