Skip to content

Commit

Permalink
Fixes root deprecation symfony 4
Browse files Browse the repository at this point in the history
Issue #34
  • Loading branch information
Herz3h authored Jan 21, 2021
1 parent f2feb72 commit 2266270
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions DependencyInjection/Configuration.php
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 2266270

Please sign in to comment.