Skip to content

Commit

Permalink
Fix deprecation on Symfony 4.2
Browse files Browse the repository at this point in the history
  • Loading branch information
chalasr authored and Jean85 committed Oct 30, 2018
1 parent b44ab83 commit 23bfd69
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/DependencyInjection/Configuration.php
Expand Up @@ -25,9 +25,9 @@ class Configuration implements ConfigurationInterface
*/
public function getConfigTreeBuilder()
{
$treeBuilder = new TreeBuilder();
$treeBuilder = new TreeBuilder('sentry');
/** @var ArrayNodeDefinition $rootNode */
$rootNode = $treeBuilder->root('sentry');
$rootNode = \method_exists(TreeBuilder::class, 'getRootNode') ? $treeBuilder->getRootNode() : $treeBuilder->root('sentry');

// Basic Sentry configuration
$rootNode
Expand Down

0 comments on commit 23bfd69

Please sign in to comment.