1
0
Fork 0

Support --no-dev combined with --locked in outdated/show commands, fixes #9788

pull/9818/head
Jordi Boggiano 2021-04-02 13:34:50 +02:00
parent 18e268556d
commit c3ae317a71
No known key found for this signature in database
GPG Key ID: 7BBD42C429EC80BC
1 changed files with 1 additions and 1 deletions

View File

@ -196,7 +196,7 @@ EOT
throw new \UnexpectedValueException('A valid composer.json and composer.lock files is required to run this command with --locked');
}
$locker = $composer->getLocker();
$lockedRepo = $locker->getLockedRepository(true);
$lockedRepo = $locker->getLockedRepository(!$input->getOption('no-dev'));
$repos = $installedRepo = new InstalledRepository(array($lockedRepo));
} else {
// --installed / default case