Skip to content

Commit

Permalink
Solve Symfony 4.2 TreeBuilder deprecation (#18)
Browse files Browse the repository at this point in the history
  • Loading branch information
martin-georgiev committed Dec 2, 2018
1 parent 10676f5 commit e305b8e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .travis.yml
Expand Up @@ -14,7 +14,7 @@ php:
env:
global:
- LATEST_PHP_VERSION="7.2"
- MAINTAINED_SYMFONY_VERSIONS="2.8.*|3.4.*|4.0.*|4.1.*"
- MAINTAINED_SYMFONY_VERSIONS="2.8.*|3.4.*|4.0.*|4.1.*|4.2.*"
matrix:
- SYMFONY_VERSION="2.8.*"
- SYMFONY_VERSION="3.0.*"
Expand All @@ -24,6 +24,7 @@ env:
- SYMFONY_VERSION="3.4.*"
- SYMFONY_VERSION="4.0.*"
- SYMFONY_VERSION="4.1.*"
- SYMFONY_VERSION="4.2.*"
- SYMFONY_VERSION="dev-master"
- DEPENDENCIES="beta"
- DEPENDENCIES="low"
Expand Down
Expand Up @@ -17,8 +17,8 @@ class Configuration implements ConfigurationInterface
{
public function getConfigTreeBuilder(): TreeBuilder
{
$treeBuilder = new TreeBuilder();
$rootNode = $treeBuilder->root('social_post');
$treeBuilder = new TreeBuilder('social_post');
$rootNode = $treeBuilder->getRootNode($treeBuilder, 'social_post');

$rootNode
->children()
Expand Down

0 comments on commit e305b8e

Please sign in to comment.