Skip to content

Commit

Permalink
Update ImportTranslationsCommand.php
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
raziel057 committed Aug 4, 2023
1 parent c79c4bc commit c2f40f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Command/ImportTranslationsCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.');
Expand Down

0 comments on commit c2f40f7

Please sign in to comment.