From a3aebdb19ebd053bbabb910f7fadf27b81a531da Mon Sep 17 00:00:00 2001 From: Daniel Farkas Date: Tue, 25 Nov 2025 14:57:26 +0100 Subject: [PATCH 1/2] fix: add return type declaration to execute method --- src/Component/PharUpdate/Console/Command.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Component/PharUpdate/Console/Command.php b/src/Component/PharUpdate/Console/Command.php index a3e10e645..50951f630 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( From bbdf5075cd8303128c6ded2720458db02ad4d6cd Mon Sep 17 00:00:00 2001 From: Daniel Farkas Date: Tue, 25 Nov 2025 15:18:21 +0100 Subject: [PATCH 2/2] fix: replace die with return statement in execute method --- src/Component/PharUpdate/Console/Command.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/Component/PharUpdate/Console/Command.php b/src/Component/PharUpdate/Console/Command.php index 50951f630..ef623f32c 100644 --- a/src/Component/PharUpdate/Console/Command.php +++ b/src/Component/PharUpdate/Console/Command.php @@ -128,7 +128,6 @@ protected function execute(InputInterface $input, OutputInterface $output): int $output->writeln('Already up-to-date.'); } - // Force exit to prevent warnings - die(0); + return self::SUCCESS; } }