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

Breadcrumb

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

function Registry::parser

File

vendor/phpunit/phpunit/src/Metadata/Parser/Registry.php, line 24

Class

Registry
Attribute and annotation information is static within a single PHP process. It is therefore okay to use a Singleton registry here.

Namespace

PHPUnit\Metadata\Parser

Code

public static function parser() : Parser {
    return self::$instance ?? (self::$instance = self::build());
}
RSS feed
Powered by Drupal