diff --git a/src/SelfUpdateCommand.php b/src/SelfUpdateCommand.php index c2bbd4c..03b96fa 100644 --- a/src/SelfUpdateCommand.php +++ b/src/SelfUpdateCommand.php @@ -2,7 +2,6 @@ namespace SelfUpdate; -use JetBrains\PhpStorm\NoReturn; use Symfony\Component\Console\Command\Command; use Symfony\Component\Console\Input\InputArgument; use Symfony\Component\Console\Input\InputInterface; @@ -130,6 +129,8 @@ protected function execute(InputInterface $input, OutputInterface $output): int return Command::FAILURE; } + // This will never be reached, but it keeps static analysis tools happy :) + return Command::SUCCESS; } /** @@ -140,7 +141,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int * * @return void */ - #[NoReturn] protected function _exit(): void { + protected function _exit(): void { exit; } }