1
0
Fork 0

Drop early package name validation if a version is provided to require/init command, fixes #10489

pull/10541/head
Jordi Boggiano 2022-02-16 15:13:21 +01:00
parent acea849c51
commit 8b5254688c
No known key found for this signature in database
GPG Key ID: 7BBD42C429EC80BC
1 changed files with 0 additions and 6 deletions

View File

@ -543,12 +543,6 @@ EOT
$requirement['version'],
$requirement['name']
));
} else {
// check that the specified version/constraint exists before we proceed
list($name) = $this->findBestVersionAndNameForPackage($input, $requirement['name'], $platformRepo, $preferredStability, $checkProvidedVersions ? $requirement['version'] : null, 'dev', $fixed);
// replace package name from packagist.org
$requirement['name'] = $name;
}
$result[] = $requirement['name'] . ' ' . $requirement['version'];