Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 141e679

Browse files
committed
[FrameworkBundle] Convert null prefix to an empty string in translation:update command
1 parent b28cd81 commit 141e679

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Bundle/FrameworkBundle/Command/TranslationUpdateCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ protected function execute(InputInterface $input, OutputInterface $output)
119119
$extractedCatalogue = new MessageCatalogue($input->getArgument('locale'));
120120
$output->text('Parsing templates');
121121
$extractor = $this->getContainer()->get('translation.extractor');
122-
$extractor->setPrefix($input->getOption('prefix'));
122+
$extractor->setPrefix($input->getOption('prefix') ?: '');
123123
foreach ($transPaths as $path) {
124124
$path .= 'views';
125125
if (is_dir($path)) {

0 commit comments

Comments
 (0)