Skip to content

Commit

Permalink
Merge pull request #27 from flackovic/fix-sf4.2-deprecation
Browse files Browse the repository at this point in the history
Fix Symfony 4.2 deprecation warning
  • Loading branch information
redjanym authored Mar 9, 2019
2 parents 8ad3e5f + 3321540 commit 61b8bb7
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 @@ -17,8 +17,8 @@ class Configuration implements ConfigurationInterface
*/
public function getConfigTreeBuilder()
{
$treeBuilder = new TreeBuilder();
$rootNode = $treeBuilder->root('redjan_ym_fcm');
$treeBuilder = new TreeBuilder('redjan_ym_fcm');
$rootNode = method_exists(TreeBuilder::class, 'getRootNode') ? $treeBuilder->getRootNode() : $treeBuilder->root('redjan_ym_fcm');

$rootNode
->children()
Expand Down

0 comments on commit 61b8bb7

Please sign in to comment.