Skip to content

Driver::forLineCoverage() and Driver::forLineAndPathCoverage() are marked as internal #810

Description

@davidrans
Q A
php-code-coverage version 9.1.9
PHP version 7.4.5
Driver Xdebug
Xdebug version (if used) v2.9.1
Installation Method Composer
Usage Method PHPUnit
PHPUnit version (if used) 9.3.10

Using the example code in the README, results in some psalm errors about using classes and methods that are marked as @internal.

ERROR: InternalMethod - The method SebastianBergmann\CodeCoverage\Driver\Driver::forLineCoverage is internal to SebastianBergmann but called from Coverage (see https://psalm.dev/175)                                
      $driver = Driver::forLineCoverage($filter);                                                                                                                                                                                                  
                                                                                                                                                                                                                                                   
                                                                                                                                                                                                                                                   
ERROR: InternalClass - SebastianBergmann\CodeCoverage\Driver\Driver is internal to SebastianBergmann but called from Coverage (see https://psalm.dev/174)
      $driver = Driver::forLineCoverage($filter);                                           


ERROR: InternalClass - SebastianBergmann\CodeCoverage\Report\Html\Facade is internal to SebastianBergmann but called from FormatCoverageResults (see https://psalm.dev/174)
         $writer = new \SebastianBergmann\CodeCoverage\Report\Html\Facade();                
                                                                                            
                                                                                            
ERROR: InternalMethod - The method SebastianBergmann\CodeCoverage\Report\Html\Facade::process is internal to SebastianBergmann but called from FormatCoverageResults (see https://psalm.dev/175)
         $writer->process($combinedCoverage, $output);                                      

Here's the example code, from this repo, that I tried to emulate: https://github.com/sebastianbergmann/php-code-coverage/blob/1894b1ae28a543838b200ec337a8748e34b84a5e/README.md#usage

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

No labels
No labels

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions