8000 minor #20433 Revert "bug #20184 [FrameworkBundle] Convert null prefix… · symfony/symfony@589d019 · GitHub
[go: up one dir, main page]

Skip to content

Commit 589d019

Browse files
committed
minor #20433 Revert "bug #20184 [FrameworkBundle] Convert null prefix to an empty string in translation:update (chalasr)" (chalasr)
This PR was merged into the 2.7 branch. Discussion ---------- Revert "bug #20184 [FrameworkBundle] Convert null prefix to an empty string in translation:update (chalasr)" | Q | A | ------------- | --- | Branch? | 2.7 | Bug fix? | no | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | #20184 (comment) | License | MIT | Doc PR | n/a This reverts commit 3f650f8 because the fix is not valid. It is actually not possible to have an option with value optional given empty to be `empty` if this one has a default value. The default value will always be the one returned, see #20184 (comment) for details. Commits ------- b2fa7c4 Revert "bug #20184 [FrameworkBundle] Convert null prefix to an empty string in translation:update (chalasr)"
2 parents fd1ee25 + b2fa7c4 commit 589d019

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,9 +118,8 @@ protected function execute(InputInterface $input, OutputInterface $output)
118118
// load any messages from templates
119119
$extractedCatalogue = new MessageCatalogue($input->getArgument('locale'));
120120
$output->text('Parsing templates');
121-
$prefix = $input->getOption('prefix');
122121
$extractor = $this->getContainer()->get('translation.extractor');
123-
$extractor->setPrefix(null === $prefix ? '' : $prefix);
122+
$extractor->setPrefix($input->getOption('prefix'));
124123
foreach ($transPaths as $path) {
125124
$path .= 'views';
126125
if (is_dir($path)) {

0 commit comments

Comments
 (0)
0