diff --git a/src/Psysh/DrushCommand.php b/src/Psysh/DrushCommand.php index 5a453d6b11..7248094f54 100644 --- a/src/Psysh/DrushCommand.php +++ b/src/Psysh/DrushCommand.php @@ -60,7 +60,7 @@ protected function configure(): void /** * {@inheritdoc} */ - protected function execute(InputInterface $input, OutputInterface $output) + protected function execute(InputInterface $input, OutputInterface $output): int { $args = $input->getArguments(); $first = array_shift($args); @@ -88,6 +88,8 @@ protected function execute(InputInterface $input, OutputInterface $output) } else { $output->page($process->getOutput()); } + + return $process->getExitCode(); } /**