8000 [DependencyInjection] fix the ValidateEnvPlaceHolderPassTest that was… · symfony/symfony@caabd92 · GitHub
[go: up one dir, main page]

Skip to content

Commit caabd92

Browse files
committed
[DependencyInjection] fix the ValidateEnvPlaceHolderPassTest that was using a deprecated path for TreeBuilder
1 parent d98dd9b commit caabd92

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Symfony/Component/DependencyInjection/Tests/Compiler/ValidateEnvPlaceholdersPassTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -332,16 +332,16 @@ class EnvConfigurationWithoutRootNode implements ConfigurationInterface
332332
{
333333
public function getConfigTreeBuilder()
334334
{
335-
return new TreeBuilder();
335+
return new TreeBuilder('env_extension');
336336
}
337337
}
338338

339339
class ConfigurationWithArrayNodeRequiringOneElement implements ConfigurationInterface
340340
{
341341
public function getConfigTreeBuilder()
342342
{
343-
$treeBuilder = new TreeBuilder();
344-
$treeBuilder->root('env_extension')
343+
$treeBuilder = new TreeBuilder('env_extension');
344+
$treeBuilder->getRootNode()
345345
->children()
346346
->arrayNode('nodes')
347347
->isRequired()

0 commit comments

Comments
 (0)
0