diff --git a/DependencyInjection/Configuration.php b/DependencyInjection/Configuration.php index 8e2a48d..461dc37 100644 --- a/DependencyInjection/Configuration.php +++ b/DependencyInjection/Configuration.php @@ -25,8 +25,8 @@ class Configuration implements ConfigurationInterface */ public function getConfigTreeBuilder() { - $treeBuilder = new TreeBuilder(); - $rootNode = $treeBuilder->root('faker'); + $treeBuilder = new TreeBuilder('faker'); + $rootNode = method_exists(TreeBuilder::class, 'getRootNode') ? $treeBuilder->getRootNode() : $treeBuilder->root('faker'); $rootNode ->beforeNormalization()