Skip to content
This repository has been archived by the owner on Jun 23, 2024. It is now read-only.

Commit

Permalink
Fix root node deprecation in symfony-config (#42)
Browse files Browse the repository at this point in the history
  • Loading branch information
roverwolf authored and theofidry committed Dec 29, 2018
1 parent 23af358 commit 8e9a0c3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/DependencyInjection/Configuration.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ final class Configuration implements ConfigurationInterface
{
public function getConfigTreeBuilder()
{
$treeBuilder = new TreeBuilder();
$rootNode = $treeBuilder->root('psysh');
$treeBuilder = new TreeBuilder('psysh');
$rootNode = \method_exists($treeBuilder, 'getRootNode') ? $treeBuilder->getRootNode() : $treeBuilder->root('psysh');

$rootNode
->children()
Expand Down

0 comments on commit 8e9a0c3

Please sign in to comment.