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

Breadcrumb

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

function PHP::__construct

Same name in this branch
  1. 11.1.x vendor/phpunit/phpunit/src/TextUI/Configuration/Value/Php.php \PHPUnit\TextUI\Configuration\Php::__construct()
  2. 11.1.x vendor/phpunit/phpunit/src/TextUI/Configuration/Xml/CodeCoverage/Report/Php.php \PHPUnit\TextUI\XmlConfiguration\CodeCoverage\Report\Php::__construct()

File

vendor/phpunit/phpunit/src/Event/Value/Runtime/PHP.php, line 43

Class

PHP
@psalm-immutable

Namespace

PHPUnit\Event\Runtime

Code

public function __construct() {
    $this->version = PHP_VERSION;
    $this->versionId = PHP_VERSION_ID;
    $this->majorVersion = PHP_MAJOR_VERSION;
    $this->minorVersion = PHP_MINOR_VERSION;
    $this->releaseVersion = PHP_RELEASE_VERSION;
    $this->extraVersion = PHP_EXTRA_VERSION;
    $this->sapi = PHP_SAPI;
    $extensions = array_merge(get_loaded_extensions(true), get_loaded_extensions());
    sort($extensions);
    $this->extensions = $extensions;
}
RSS feed
Powered by Drupal