Skip to content

Commit

Permalink
Improve support Symfony 7
Browse files Browse the repository at this point in the history
  • Loading branch information
Oleg Maksimenko authored and mac-cain13 committed Dec 11, 2023
1 parent e09e19d commit d5cc743
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Wrep/Daemonizable/Command/EndlessCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ public function setCode(callable $code): static
* @throws LogicException When this abstract method is not implemented
* @see setCode()
*/
protected function execute(InputInterface $input, OutputInterface $output)
protected function execute(InputInterface $input, OutputInterface $output): int
{
return parent::execute($input, $output);
}
Expand Down
4 changes: 3 additions & 1 deletion tests/Wrep/Daemonizable/Command/EndlessCommandTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -110,8 +110,10 @@ public function testInterruptSigtermFromDifferentContext(): void
*/
class EndlessSelfTerminatingCommand extends EndlessCommand
{
protected function execute(InputInterface $input, OutputInterface $output)
protected function execute(InputInterface $input, OutputInterface $output): int
{
posix_kill(posix_getpid(), SIGTERM);

return self::SUCCESS;
}
}

0 comments on commit d5cc743

Please sign in to comment.