@@ -105,11 +105,14 @@ public function __construct(string $name = 'UNKNOWN', string $version = 'UNKNOWN
105105 /**
106106 * @final
107107 */
108- public function setDispatcher (EventDispatcherInterface $ dispatcher )
108+ public function setDispatcher (EventDispatcherInterface $ dispatcher ): void
109109 {
110110 $ this ->dispatcher = $ dispatcher ;
111111 }
112112
113+ /**
114+ * @return void
115+ */
113116 public function setCommandLoader (CommandLoaderInterface $ commandLoader )
114117 {
115118 $ this ->commandLoader = $ commandLoader ;
@@ -124,6 +127,9 @@ public function getSignalRegistry(): SignalRegistry
124127 return $ this ->signalRegistry ;
125128 }
126129
130+ /**
131+ * @return void
132+ */
127133 public function setSignalsToDispatchEvent (int ...$ signalsToDispatchEvent )
128134 {
129135 $ this ->signalsToDispatchEvent = $ signalsToDispatchEvent ;
@@ -317,10 +323,16 @@ public function doRun(InputInterface $input, OutputInterface $output)
317323 return $ exitCode ;
318324 }
319325
326+ /**
327+ * @return void
328+ */
320329 public function reset ()
321330 {
322331 }
323332
333+ /**
334+ * @return void
335+ */
324336 public function setHelperSet (HelperSet $ helperSet )
325337 {
326338 $ this ->helperSet = $ helperSet ;
@@ -334,6 +346,9 @@ public function getHelperSet(): HelperSet
334346 return $ this ->helperSet ??= $ this ->getDefaultHelperSet ();
335347 }
336348
349+ /**
350+ * @return void
351+ */
337352 public function setDefinition (InputDefinition $ definition )
338353 {
339354 $ this ->definition = $ definition ;
@@ -404,6 +419,8 @@ public function areExceptionsCaught(): bool
404419
405420 /**
406421 * Sets whether to catch exceptions or not during commands execution.
422+ *
423+ * @return void
407424 */
408425 public function setCatchExceptions (bool $ boolean )
409426 {
@@ -420,6 +437,8 @@ public function isAutoExitEnabled(): bool
420437
421438 /**
422439 * Sets whether to automatically exit after a command execution or not.
440+ *
441+ * @return void
423442 */
424443 public function setAutoExit (bool $ boolean )
425444 {
@@ -436,7 +455,9 @@ public function getName(): string
436455
437456 /**
438457 * Sets the application name.
439- **/
458+ *
459+ * @return void
460+ */
440461 public function setName (string $ name )
441462 {
442463 $ this ->name = $ name ;
@@ -452,6 +473,8 @@ public function getVersion(): string
452473
453474 /**
454475 * Sets the application version.
476+ *
477+ * @return void
455478 */
456479 public function setVersion (string $ version )
457480 {
@@ -490,6 +513,8 @@ public function register(string $name): Command
490513 * If a Command is not enabled it will not be added.
491514 *
492515 * @param Command[] $commands An array of commands
516+ *
517+ * @return void
493518 */
494519 public function addCommands (array $ commands )
495520 {
@@ -899,6 +924,8 @@ protected function doRenderThrowable(\Throwable $e, OutputInterface $output): vo
899924
900925 /**
901926 * Configures the input and output instances based on the user arguments and options.
927+ *
928+ * @return void
902929 */
903930 protected function configureIO (InputInterface $ input , OutputInterface $ output )
904931 {
@@ -1250,7 +1277,7 @@ private function extractAllNamespaces(string $name): array
12501277 return $ namespaces ;
12511278 }
12521279
1253- private function init ()
1280+ private function init (): void
12541281 {
12551282 if ($ this ->initialized ) {
12561283 return ;
0 commit comments