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

Breadcrumb

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

function CachingParser::forClass

@psalm-param class-string $className

Overrides Parser::forClass

File

vendor/phpunit/phpunit/src/Metadata/Parser/CachingParser.php, line 37

Class

CachingParser
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit

Namespace

PHPUnit\Metadata\Parser

Code

public function forClass(string $className) : MetadataCollection {
    assert(class_exists($className));
    if (isset($this->classCache[$className])) {
        return $this->classCache[$className];
    }
    $this->classCache[$className] = $this->reader
        ->forClass($className);
    return $this->classCache[$className];
}
RSS feed
Powered by Drupal