Adding return types to commands.

This commit is contained in:
Alexey Skobkin 2023-04-09 17:40:11 +03:00
parent ef40d8f19a
commit fc8b8e04e3
No known key found for this signature in database
GPG key ID: 5D5CEF6F221278E7
4 changed files with 4 additions and 4 deletions

View file

@ -21,7 +21,7 @@ class TelegramSendMessageCommand extends Command
parent::__construct();
}
protected function configure()
protected function configure(): void
{
$this
->addOption('chat-id', 'c', InputOption::VALUE_OPTIONAL, 'ID of the chat')

View file

@ -28,7 +28,7 @@ class TelegramWebhookCommand extends Command
parent::__construct();
}
protected function configure()
protected function configure(): void
{
$this
->addArgument('mode', InputArgument::REQUIRED, 'Command mode (set or delete)')

View file

@ -32,7 +32,7 @@ class UpdateSubscriptionsCommand extends Command
parent::__construct();
}
protected function configure()
protected function configure(): void
{
$this
->addOption(

View file

@ -32,7 +32,7 @@ class UpdateUsersPrivacyCommand extends Command
parent::__construct();
}
protected function configure()
protected function configure(): void
{
$this
->addOption(