diff --git a/src/Composer/Command/BaseDependencyCommand.php b/src/Composer/Command/BaseDependencyCommand.php index a84c62bc3..1e4d2e715 100644 --- a/src/Composer/Command/BaseDependencyCommand.php +++ b/src/Composer/Command/BaseDependencyCommand.php @@ -57,7 +57,8 @@ class BaseDependencyCommand extends BaseCommand * * @param InputInterface $input * @param OutputInterface $output - * @param bool @inverted Whether + * @param bool $inverted Whether to invert matching process (why-not vs why behaviour) + * @return int|null Exit code of the operation. */ protected function doExecute(InputInterface $input, OutputInterface $output, $inverted = false) { @@ -121,6 +122,7 @@ class BaseDependencyCommand extends BaseCommand } else { $this->printTable($output, $results); } + return 0; } /** diff --git a/src/Composer/Command/DependsCommand.php b/src/Composer/Command/DependsCommand.php index 3da8d991b..0cfb5b83d 100644 --- a/src/Composer/Command/DependsCommand.php +++ b/src/Composer/Command/DependsCommand.php @@ -50,6 +50,6 @@ EOT */ protected function execute(InputInterface $input, OutputInterface $output) { - parent::doExecute($input, $output, false); + return parent::doExecute($input, $output, false); } } diff --git a/src/Composer/Command/ProhibitsCommand.php b/src/Composer/Command/ProhibitsCommand.php index 3f0ea15a5..fb717eb7e 100644 --- a/src/Composer/Command/ProhibitsCommand.php +++ b/src/Composer/Command/ProhibitsCommand.php @@ -50,6 +50,6 @@ EOT */ protected function execute(InputInterface $input, OutputInterface $output) { - parent::doExecute($input, $output, true); + return parent::doExecute($input, $output, true); } }