Skip to content

Commit

Permalink
Add command return types
Browse files Browse the repository at this point in the history
  • Loading branch information
vladyslav-sikailo-run-as-root committed Nov 22, 2023
1 parent 02093df commit db0b374
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/Console/Command/CollectMetricsCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public function __construct(
$this->state = $state;
}

protected function configure()
protected function configure(): void
{
$this->setName(self::COMMAND_NAME);
$this->setDescription(self::COMMAND_DESCRIPTION);
Expand All @@ -46,7 +46,7 @@ protected function configure()
parent::configure();
}

protected function execute(InputInterface $input, OutputInterface $output)
protected function execute(InputInterface $input, OutputInterface $output): int
{
try {
$this->state->getAreaCode();
Expand Down
2 changes: 1 addition & 1 deletion src/Console/Command/ListMetricsCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ protected function configure(): void
parent::configure();
}

protected function execute(InputInterface $input, OutputInterface $output)
protected function execute(InputInterface $input, OutputInterface $output): int
{
try {
$this->state->setAreaCode(Area::AREA_GLOBAL);
Expand Down

0 comments on commit db0b374

Please sign in to comment.