View Issue Details

IDProjectCategoryView StatusLast Update
0001910XdebugCode Coveragepublic2020-12-11 11:22
ReporterStanjan Assigned Toderick  
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionfixed 
Product Version3.0.1 
Target Version3.0devFixed in Version3.0.2 
Summary0001910: Code coverage misses constructor property promotion code
DescriptionConstructor property promotion does not get marked as covered
Steps To ReproduceThis causes the class to miss 1 method and line in the code coverage report:

public function __construct(
    private Security $security,
) {}

After changing it to a regular constructor, it does work, eg:

private Security $security;

public function __construct(
    Security $security,
) {
    $this->security = $security;
}
TagsNo tags attached.
Operating System
PHP Version8.0.0-8.0.4

Activities

Issue History

Date Modified Username Field Change
2020-12-10 09:38 Stanjan New Issue
2020-12-10 12:40 derick Status new => confirmed
2020-12-10 12:40 derick Target Version => 3.0.2
2020-12-10 16:24 derick Summary PHP8 Constructor property promotion code coverage => Code coverage misses constructor property promotion code
2020-12-11 11:22 derick Assigned To => derick
2020-12-11 11:22 derick Status confirmed => closed
2020-12-11 11:22 derick Resolution open => fixed
2020-12-11 11:22 derick Fixed in Version => 3.0.2
2020-12-11 11:22 derick Note Added: 0005583
2020-12-11 11:22 derick Target Version 3.0.2 => 3.0dev