1
0
Fork 0

Add hint to why-not that calling update with a temporary constraint can also help elucidate an issue

pull/10899/head
Jordi Boggiano 2022-06-23 21:16:12 +02:00
parent eba49147e7
commit ddecd5e328
No known key found for this signature in database
GPG Key ID: 7BBD42C429EC80BC
1 changed files with 4 additions and 0 deletions

View File

@ -127,6 +127,10 @@ abstract class BaseDependencyCommand extends BaseCommand
$this->printTable($output, $results);
}
if ($inverted) {
$this->getIO()->writeError('Not finding what you were looking for? Try calling `composer update "'.$input->getArgument(self::ARGUMENT_PACKAGE).':'.$input->getArgument(self::ARGUMENT_CONSTRAINT).'" --dry-run` to get another view on the problem.');
}
return 0;
}