From c2f40f79ad69a6e6d4460ec072407c5d5ca34623 Mon Sep 17 00:00:00 2001 From: Thomas Lallement Date: Fri, 4 Aug 2023 09:18:27 +0200 Subject: [PATCH] Update ImportTranslationsCommand.php Fix deprecation raised on Symfony 6.3: Method "Symfony\Component\Console\Command\Command::configure()" might add "void" as a native return type declaration in the future. Do the same in child class "Lexik\Bundle\TranslationBundle\Command\ImportTranslationsCommand" now to avoid errors or add an explicit @return annotation to suppress this message. Note that the "void" return type have been introduced in PHP 8.1 so it's in line with the constraint in composer.json. --- Command/ImportTranslationsCommand.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Command/ImportTranslationsCommand.php b/Command/ImportTranslationsCommand.php index 14ea54ea..60cfbd67 100644 --- a/Command/ImportTranslationsCommand.php +++ b/Command/ImportTranslationsCommand.php @@ -46,7 +46,7 @@ public function __construct( /** * {@inheritdoc} */ - protected function configure() + protected function configure(): void { $this->setName('lexik:translations:import'); $this->setDescription('Import all translations from flat files (xliff, yml, php) into the database.');