Skip to content

Commit

Permalink
fix: return int val for execute()
Browse files Browse the repository at this point in the history
  • Loading branch information
iknowfoobar committed Nov 12, 2021
1 parent 96a2ba3 commit e772a28
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Command/ClearCdnCacheCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public function __construct(ClearCdnCacheService $service, LoggerInterface $logg
parent::__construct('cdn:cache:clear');
}

public function execute(InputInterface $input, OutputInterface $output): void
public function execute(InputInterface $input, OutputInterface $output): int
{
$msg = 'Clear '.$this->service->getProviderName().' cache: ';
$status = 'FAIL';
Expand All @@ -37,5 +37,6 @@ public function execute(InputInterface $input, OutputInterface $output): void
}

$output->writeln($msg.$status);
return 0;
}
}

0 comments on commit e772a28

Please sign in to comment.