Skip to content

Commit

Permalink
Fix Symfony 4.2 deprecation warning
Browse files Browse the repository at this point in the history
  • Loading branch information
flackovic committed Mar 1, 2019
1 parent 8ad3e5f commit 3321540
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 3321540

Please sign in to comment.