Skip to content

Commit d5cc743

Browse files
Oleg Maksimenkomac-cain13
Oleg Maksimenko
authored andcommitted
Improve support Symfony 7
1 parent e09e19d commit d5cc743

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/Wrep/Daemonizable/Command/EndlessCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ public function setCode(callable $code): static
244244
* @throws LogicException When this abstract method is not implemented
245245
* @see setCode()
246246
*/
247-
protected function execute(InputInterface $input, OutputInterface $output)
247+
protected function execute(InputInterface $input, OutputInterface $output): int
248248
{
249249
return parent::execute($input, $output);
250250
}

tests/Wrep/Daemonizable/Command/EndlessCommandTest.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,8 +110,10 @@ public function testInterruptSigtermFromDifferentContext(): void
110110
*/
111111
class EndlessSelfTerminatingCommand extends EndlessCommand
112112
{
113-
protected function execute(InputInterface $input, OutputInterface $output)
113+
protected function execute(InputInterface $input, OutputInterface $output): int
114114
{
115115
posix_kill(posix_getpid(), SIGTERM);
116+
117+
return self::SUCCESS;
116118
}
117119
}

0 commit comments

Comments
 (0)