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

Breadcrumb

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

function ValidatingArrayLoader::__construct

Parameters

true $strictName:

File

vendor/composer/composer/src/Composer/Package/Loader/ValidatingArrayLoader.php, line 49

Class

ValidatingArrayLoader
@author Jordi Boggiano <j.boggiano@seld.be>

Namespace

Composer\Package\Loader

Code

public function __construct(LoaderInterface $loader, bool $strictName = true, ?VersionParser $parser = null, int $flags = 0) {
    $this->loader = $loader;
    $this->versionParser = $parser ?? new VersionParser();
    $this->flags = $flags;
    if ($strictName !== true) {
        // @phpstan-ignore-line
        trigger_error('$strictName must be set to true in ValidatingArrayLoader\'s constructor as of 2.2, and it will be removed in 3.0', E_USER_DEPRECATED);
    }
}
RSS feed
Powered by Drupal