File tree 2 files changed +4
-2
lines changed
src/Wrep/Daemonizable/Command
tests/Wrep/Daemonizable/Command 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -244,7 +244,7 @@ public function setCode(callable $code): static
244
244
* @throws LogicException When this abstract method is not implemented
245
245
* @see setCode()
246
246
*/
247
- protected function execute (InputInterface $ input , OutputInterface $ output )
247
+ protected function execute (InputInterface $ input , OutputInterface $ output ): int
248
248
{
249
249
return parent ::execute ($ input , $ output );
250
250
}
Original file line number Diff line number Diff line change @@ -110,8 +110,10 @@ public function testInterruptSigtermFromDifferentContext(): void
110
110
*/
111
111
class EndlessSelfTerminatingCommand extends EndlessCommand
112
112
{
113
- protected function execute (InputInterface $ input , OutputInterface $ output )
113
+ protected function execute (InputInterface $ input , OutputInterface $ output ): int
114
114
{
115
115
posix_kill (posix_getpid (), SIGTERM );
116
+
117
+ return self ::SUCCESS ;
116
118
}
117
119
}
You can’t perform that action at this time.
0 commit comments