1
0
Fork 0

Update BaseDependencyCommand.php

pull/12231/head
Thomas Landauer 2024-12-11 13:31:36 +01:00 committed by GitHub
parent e132a5a84a
commit cefdee5049
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 0 deletions

View File

@ -128,6 +128,7 @@ abstract class BaseDependencyCommand extends BaseCommand
$this->getIO()->writeError('<info>Package "'.$needle.' '.$textConstraint.'" found in version "'.$matchedPackage->getPrettyVersion().'"'.$extraNotice.'.</info>');
} elseif ($inverted) {
$this->getIO()->write('<comment>Package "'.$needle.'" '.$matchedPackage->getPrettyVersion().' is already installed! To find out why, run `composer why '.$needle.'`</comment>');
return 0;
}
// Include replaced packages for inverted lookups as they are then the actual starting point to consider