Skip to content

Commit db0b374

Browse files
Add command return types
1 parent 02093df commit db0b374

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/Console/Command/CollectMetricsCommand.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public function __construct(
3737
$this->state = $state;
3838
}
3939

40-
protected function configure()
40+
protected function configure(): void
4141
{
4242
$this->setName(self::COMMAND_NAME);
4343
$this->setDescription(self::COMMAND_DESCRIPTION);
@@ -46,7 +46,7 @@ protected function configure()
4646
parent::configure();
4747
}
4848

49-
protected function execute(InputInterface $input, OutputInterface $output)
49+
protected function execute(InputInterface $input, OutputInterface $output): int
5050
{
5151
try {
5252
$this->state->getAreaCode();

src/Console/Command/ListMetricsCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ protected function configure(): void
4545
parent::configure();
4646
}
4747

48-
protected function execute(InputInterface $input, OutputInterface $output)
48+
protected function execute(InputInterface $input, OutputInterface $output): int
4949
{
5050
try {
5151
$this->state->setAreaCode(Area::AREA_GLOBAL);

0 commit comments

Comments
 (0)