Skip to content

Commit 27b0898

Browse files
authored
fix: add return type declaration to execute method (#4136)
* fix: add return type declaration to execute method * fix: replace die with return statement in execute method
1 parent c4bb11e commit 27b0898

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/Component/PharUpdate/Console/Command.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ protected function configure()
102102
/**
103103
* {@inheritdoc}
104104
*/
105-
protected function execute(InputInterface $input, OutputInterface $output)
105+
protected function execute(InputInterface $input, OutputInterface $output): int
106106
{
107107
if (null === $this->manifestUri) {
108108
throw new LogicException(
@@ -128,7 +128,6 @@ protected function execute(InputInterface $input, OutputInterface $output)
128128
$output->writeln('<comment>Already up-to-date.</comment>');
129129
}
130130

131-
// Force exit to prevent warnings
132-
die(0);
131+
return self::SUCCESS;
133132
}
134133
}

0 commit comments

Comments
 (0)