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

Breadcrumb

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

Registry::$instance

Same name in this branch
  1. 11.1.x vendor/phpunit/phpunit/src/TextUI/Configuration/Registry.php \PHPUnit\TextUI\Configuration\Registry::instance
  2. 11.1.x vendor/phpunit/phpunit/src/Metadata/Parser/Registry.php \PHPUnit\Metadata\Parser\Registry::instance

Type: instance

File

vendor/phpunit/phpunit/src/Metadata/Parser/Annotation/Registry.php, line 28

Class

Registry
Reflection information, and therefore DocBlock information, is static within a single PHP process. It is therefore okay to use a Singleton registry here.

Namespace

PHPUnit\Metadata\Annotation\Parser

Code

private static ?Registry $instance = null;
RSS feed
Powered by Drupal