1
0
Fork 0

Fix support for --self --name-only, fixes #8844

pull/8864/head
Jordi Boggiano 2020-05-01 18:03:22 +02:00
parent 54d8cbe5f8
commit bfe71fb952
No known key found for this signature in database
GPG Key ID: 7BBD42C429EC80BC
1 changed files with 4 additions and 0 deletions

View File

@ -152,6 +152,10 @@ EOT
if ($input->getOption('self')) {
$package = $this->getComposer()->getPackage();
if ($input->getOption('name-only')) {
$io->write($package->getName());
return 0;
}
$repos = $installedRepo = new ArrayRepository(array($package));
} elseif ($input->getOption('platform')) {
$repos = $installedRepo = $platformRepo;