Skip to content

Commit ef84ff7

Browse files
pimoloNyholm
authored andcommitted
Remove useless array wrapping (#203)
We already check that it's an array in the configuration definition. This wrapping is useless and prevent proper options retrieving.
1 parent b98a193 commit ef84ff7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

DependencyInjection/TranslationExtension.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ private function handleConfigNode(ContainerBuilder $container, array $config)
134134

135135
$def = $this->createChildDefinition($serviceId);
136136
$def->replaceArgument(2, [$c['output_dir']])
137-
->replaceArgument(3, [$c['local_file_storage_options']])
137+
->replaceArgument(3, $c['local_file_storage_options'])
138138
->addTag('php_translation.storage', ['type' => 'local', 'name' => $name]);
139139
$container->setDefinition('php_translation.single_storage.file.'.$name, $def);
140140
}

0 commit comments

Comments
 (0)