From f253e3d2239358e8d73104804a73ee0028826439 Mon Sep 17 00:00:00 2001 From: Alireza Seddighi Date: Sat, 29 Jan 2022 23:20:05 +0330 Subject: [PATCH] Add return types --- Command/WebhookDeleteCommand.php | 2 +- Command/WebhookInfoCommand.php | 2 +- Command/WebhookSetCommand.php | 2 +- DependencyInjection/Configuration.php | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Command/WebhookDeleteCommand.php b/Command/WebhookDeleteCommand.php index 9697b44..756ddbd 100644 --- a/Command/WebhookDeleteCommand.php +++ b/Command/WebhookDeleteCommand.php @@ -47,7 +47,7 @@ protected function configure() /** * @inheritDoc */ - protected function execute(InputInterface $input, OutputInterface $output) + protected function execute(InputInterface $input, OutputInterface $output): int { $io = new SymfonyStyle($input, $output); diff --git a/Command/WebhookInfoCommand.php b/Command/WebhookInfoCommand.php index 1af9911..7356381 100644 --- a/Command/WebhookInfoCommand.php +++ b/Command/WebhookInfoCommand.php @@ -47,7 +47,7 @@ protected function configure() /** * @inheritDoc */ - protected function execute(InputInterface $input, OutputInterface $output) + protected function execute(InputInterface $input, OutputInterface $output): int { $io = new SymfonyStyle($input, $output); diff --git a/Command/WebhookSetCommand.php b/Command/WebhookSetCommand.php index 3797ee4..2c469d7 100644 --- a/Command/WebhookSetCommand.php +++ b/Command/WebhookSetCommand.php @@ -49,7 +49,7 @@ protected function configure() /** * @inheritDoc */ - protected function execute(InputInterface $input, OutputInterface $output) + protected function execute(InputInterface $input, OutputInterface $output): int { $io = new SymfonyStyle($input, $output); diff --git a/DependencyInjection/Configuration.php b/DependencyInjection/Configuration.php index 1c0e817..85c860c 100644 --- a/DependencyInjection/Configuration.php +++ b/DependencyInjection/Configuration.php @@ -11,7 +11,7 @@ class Configuration implements ConfigurationInterface /** * {@inheritdoc} */ - public function getConfigTreeBuilder() + public function getConfigTreeBuilder(): TreeBuilder { $builder = new TreeBuilder('telegram_bot_api'); $rootNode = \method_exists($builder, 'getRootNode') ? $builder->getRootNode() : $builder->root('telegram_bot_api');