File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
components/console/helpers Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ set the headers, set the rows and then render the table::
28
28
29
29
class SomeCommand extends Command
30
30
{
31
- public function execute(InputInterface $input, OutputInterface $output)
31
+ public function execute(InputInterface $input, OutputInterface $output): int
32
32
{
33
33
$table = new Table($output);
34
34
$table
@@ -41,6 +41,8 @@ set the headers, set the rows and then render the table::
41
41
])
42
42
;
43
43
$table->render();
44
+
45
+ return Command::SUCCESS;
44
46
}
45
47
}
46
48
@@ -406,7 +408,7 @@ The only requirement to append rows is that the table must be rendered inside a
406
408
407
409
class SomeCommand extends Command
408
410
{
409
- public function execute(InputInterface $input, OutputInterface $output)
411
+ public function execute(InputInterface $input, OutputInterface $output): int
410
412
{
411
413
$section = $output->section();
412
414
$table = new Table($section);
@@ -415,6 +417,8 @@ The only requirement to append rows is that the table must be rendered inside a
415
417
$table->render();
416
418
417
419
$table->appendRow(['Symfony']);
420
+
421
+ return Command::SUCCESS;
418
422
}
419
423
}
420
424
You can’t perform that action at this time.
0 commit comments