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\LoaderCode
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);
}
}