Skip to content

Remove a TreeBuilder deprecation #275

@arneee

Description

@arneee

In Symfony 4.2 the following deprecation warning appears:

A tree builder without a root node is deprecated since Symfony 4.2 and will not be supported anymore in 5.0.
Hide context    Show trace
[▼
  "exception" => SilencedErrorContext {#3109 ▼
    +count: 2
    -severity: E_USER_DEPRECATED
    trace: {▼
      C:\...\sfphp\vendor\symfony\config\Definition\Builder\TreeBuilder.php:30 {▶}
      C:\...\sfphp\vendor\php-translation\symfony-bundle\DependencyInjection\Configuration.php:36 {▼
        › {
        ›     $treeBuilder = new TreeBuilder();
        ›     $root = $treeBuilder->root('translation');
      }
    }
  }
]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions