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

Breadcrumb

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

function CustomCssFile::from

Throws

InvalidArgumentException

1 call to CustomCssFile::from()
CodeCoverage::generateReports in vendor/phpunit/phpunit/src/Runner/CodeCoverage.php

File

vendor/phpunit/php-code-coverage/src/Report/Html/CustomCssFile.php, line 30

Class

CustomCssFile
@psalm-immutable

Namespace

SebastianBergmann\CodeCoverage\Report\Html

Code

public static function from(string $path) : self {
    if (!is_file($path)) {
        throw new InvalidArgumentException('$path does not exist');
    }
    return new self($path);
}
RSS feed
Powered by Drupal