Skip to content

Incorrect return type for Cobertura::process #1092

@cjones-vultr

Description

@cjones-vultr
Q A
php-code-coverage version 10.1.3
PHP version 8.1.32
Driver Xdebug
Xdebug version (if used) 3.4.2
Installation Method Composer
Usage Method PHPUnit
PHPUnit version (if used) 10.2.7

The signature of Cobertura::process is public function process(CodeCoverage $coverage, ?string $target = null): string. It has a single return statement in it that returns the result of calling $document->saveXML(). That function has a signature of public DOMDocument::saveXML(?DOMNode $node = null, int $options = 0): string|false. When it returns false, an error occurred.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions