From 1652733786df4dfb9627359e13ccb3d2a1628cd6 Mon Sep 17 00:00:00 2001 From: Faiz Shukri Date: Wed, 13 Mar 2024 11:35:41 +0800 Subject: [PATCH] fix: symfony compatibility issue --- src/Commands/ConfigViewCommand.php | 2 +- src/Commands/TranslationAddCommand.php | 2 +- src/Commands/TranslationListCommand.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Commands/ConfigViewCommand.php b/src/Commands/ConfigViewCommand.php index a82654c..fb667f5 100644 --- a/src/Commands/ConfigViewCommand.php +++ b/src/Commands/ConfigViewCommand.php @@ -30,7 +30,7 @@ protected function configure() ->setDescription('View configuration path'); } - protected function execute(InputInterface $input, OutputInterface $output) + protected function execute(InputInterface $input, OutputInterface $output): int { $output->writeln("Config file: {$this->config->configFile}"); $output->writeln("Data directory: {$this->config->dataDir}\n"); diff --git a/src/Commands/TranslationAddCommand.php b/src/Commands/TranslationAddCommand.php index 77a9cf5..11d195b 100644 --- a/src/Commands/TranslationAddCommand.php +++ b/src/Commands/TranslationAddCommand.php @@ -39,7 +39,7 @@ protected function configure() ->addUsage('ms.basmeih'); } - protected function execute(InputInterface $input, OutputInterface $output) + protected function execute(InputInterface $input, OutputInterface $output): int { $translation = $input->getArgument('translation'); diff --git a/src/Commands/TranslationListCommand.php b/src/Commands/TranslationListCommand.php index 5c3dbe9..841a353 100644 --- a/src/Commands/TranslationListCommand.php +++ b/src/Commands/TranslationListCommand.php @@ -29,7 +29,7 @@ protected function configure() ->setDescription('View available translations'); } - protected function execute(InputInterface $input, OutputInterface $output) + protected function execute(InputInterface $input, OutputInterface $output): int { $translations = $this->translations();