diff --git a/src/Component/PharUpdate/Console/Command.php b/src/Component/PharUpdate/Console/Command.php index a3e10e645..ef623f32c 100644 --- a/src/Component/PharUpdate/Console/Command.php +++ b/src/Component/PharUpdate/Console/Command.php @@ -102,7 +102,7 @@ protected function configure() /** * {@inheritdoc} */ - protected function execute(InputInterface $input, OutputInterface $output) + protected function execute(InputInterface $input, OutputInterface $output): int { if (null === $this->manifestUri) { throw new LogicException( @@ -128,7 +128,6 @@ protected function execute(InputInterface $input, OutputInterface $output) $output->writeln('Already up-to-date.'); } - // Force exit to prevent warnings - die(0); + return self::SUCCESS; } }