Skip to content

Commit

Permalink
Fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
Seldaek committed Jun 24, 2022
1 parent 4229c2c commit 978037f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Composer/Command/BaseDependencyCommand.php
Expand Up @@ -127,7 +127,7 @@ protected function doExecute(InputInterface $input, OutputInterface $output, boo
$this->printTable($output, $results);
}

if ($inverted) {
if ($inverted && $input->hasArgument(self::ARGUMENT_CONSTRAINT)) {
$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.');
}

Expand Down

0 comments on commit 978037f

Please sign in to comment.