Skip to content

Commit f03522d

Browse files
Merge branch '3.1'
* 3.1: [travis] Test on PHP 7.1 simplified code Remove unused variable 3.0 Upgrade Guide: Added Table of Contents [HttpFoundation] add missing upgrade entry [FrameworkBundle] Convert null prefix to an empty string in translation:update command Improved the deprecation messages for service aliases [Serializer] minor: Remove an extra space in a YamlFileLoader error [HttpKernel] Clean ArgumentMetadataFactory::getType() [PropertyInfo] Fix edge cases in ReflectionExtractor
2 parents 6df67e4 + 4cb00ea commit f03522d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Command/TranslationUpdateCommand.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,8 +132,9 @@ protected function execute(InputInterface $input, OutputInterface $output)
132132
// load any messages from templates
133133
$extractedCatalogue = new MessageCatalogue($input->getArgument('locale'));
134134
$io->comment('Parsing templates...');
135+
$prefix = $input->getOption('prefix');
135136
$extractor = $this->getContainer()->get('translation.extractor');
136-
$extractor->setPrefix($input->getOption('prefix'));
137+
$extractor->setPrefix(null === $prefix ? '' : $prefix);
137138
foreach ($transPaths as $path) {
138139
$path .= 'views';
139140
if (is_dir($path)) {

0 commit comments

Comments
 (0)