Support --no-dev combined with --locked in outdated/show commands, fixes #9788
parent
18e268556d
commit
c3ae317a71
|
@ -196,7 +196,7 @@ EOT
|
||||||
throw new \UnexpectedValueException('A valid composer.json and composer.lock files is required to run this command with --locked');
|
throw new \UnexpectedValueException('A valid composer.json and composer.lock files is required to run this command with --locked');
|
||||||
}
|
}
|
||||||
$locker = $composer->getLocker();
|
$locker = $composer->getLocker();
|
||||||
$lockedRepo = $locker->getLockedRepository(true);
|
$lockedRepo = $locker->getLockedRepository(!$input->getOption('no-dev'));
|
||||||
$repos = $installedRepo = new InstalledRepository(array($lockedRepo));
|
$repos = $installedRepo = new InstalledRepository(array($lockedRepo));
|
||||||
} else {
|
} else {
|
||||||
// --installed / default case
|
// --installed / default case
|
||||||
|
|
Loading…
Reference in New Issue