File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
src/Wrep/Daemonizable/Command
tests/Wrep/Daemonizable/Command Expand file tree Collapse file tree 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
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 }
Original file line number Diff line number Diff line change @@ -110,8 +110,10 @@ public function testInterruptSigtermFromDifferentContext(): void
110110 */
111111class 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}
You can’t perform that action at this time.
0 commit comments