Skip to content

Error after new release of php-code-coverageΒ #5949

Closed
@bzawada

Description

@bzawada

After upgrade of composer packages at my project, I encountered error while running codeception with coverage:
vendor/bin/codecept run unit --coverage-html --coverage-xml --coverage-text --no-colors --coverage --phpunit-xml

PHP Fatal error: Uncaught ArgumentCountError: Too few arguments to function SebastianBergmann\CodeCoverage\CodeCoverage::__construct(), 0 passed in ./vendor/codeception/codeception/src/Codeception/Coverage/Subscriber/Printer.php on line 37 and exactly 2 expected in ./vendor/phpunit/php-code-coverage/src/CodeCoverage.php:118

I see that today the 9.0.0 version of php-code-coverage was released, so it seems like some integration issue between php-code-coverage and codeception.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions