@@ -23,7 +23,7 @@ protected function initialize(InputInterface $input, OutputInterface $output)
23
23
}
24
24
25
25
// Execute will be called in a endless loop
26
- protected function execute (InputInterface $ input , OutputInterface $ output )
26
+ protected function execute (InputInterface $ input , OutputInterface $ output ): int
27
27
{
28
28
// Tell the user what we're going to do.
29
29
// This will be silenced by Symfony if the user doesn't want any output at all,
@@ -52,21 +52,23 @@ protected function execute(InputInterface $input, OutputInterface $output)
52
52
// Tell the user we're done
53
53
$ output ->writeln ('done ' );
54
54
}
55
+
56
+ return self ::SUCCESS ;
55
57
}
56
58
57
59
/**
58
60
* Called after each iteration
59
61
* @param InputInterface $input
60
62
* @param OutputInterface $output
61
63
*/
62
- protected function finishIteration (InputInterface $ input , OutputInterface $ output )
64
+ protected function finishIteration (InputInterface $ input , OutputInterface $ output ): void
63
65
{
64
66
// Do some cleanup/memory management here, don't forget to call the parent implementation!
65
67
parent ::finishIteration ($ input , $ output );
66
68
}
67
69
68
70
// Called once on shutdown after the last iteration finished
69
- protected function finalize (InputInterface $ input , OutputInterface $ output )
71
+ protected function finalize (InputInterface $ input , OutputInterface $ output ): void
70
72
{
71
73
// Do some cleanup here, don't forget to call the parent implementation!
72
74
parent ::finalize ($ input , $ output );
0 commit comments