View Issue Details

IDProjectCategoryView StatusLast Update
0001910XdebugCode Coveragepublic2020-12-11 11:22
ReporterStanjan Assigned To 
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionfixed 
Product Version3.0.1 
Target Version3.0devFixed in Version3.0.2 
Summary0001910: Code coverage misses constructor property promotion code
Description

Constructor property promotion does not get marked as covered

Steps To Reproduce

This 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