Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. CachingFileAnalyser.php

function CachingFileAnalyser::read

1 call to CachingFileAnalyser::read()
CachingFileAnalyser::process in vendor/phpunit/php-code-coverage/src/StaticAnalysis/CachingFileAnalyser.php

File

vendor/phpunit/php-code-coverage/src/StaticAnalysis/CachingFileAnalyser.php, line 125

Class

CachingFileAnalyser
@internal This class is not covered by the backward compatibility promise for phpunit/php-code-coverage

Namespace

SebastianBergmann\CodeCoverage\StaticAnalysis

Code

private function read(string $filename) : array|false {
    $cacheFile = $this->cacheFile($filename);
    if (!is_file($cacheFile)) {
        return false;
    }
    return unserialize(file_get_contents($cacheFile), [
        'allowed_classes' => false,
    ]);
}
RSS feed
Powered by Drupal