I upgraded my Symfony project from 4.1 to 4.2 and get this notice 12 times in profiler:
A tree builder without a root node is deprecated since Symfony 4.2 and will not be supported anymore in 5.0.
and the trace of the log is:
{▼
/home/user/foo/bar/project/vendor/symfony/config/Definition/Builder/TreeBuilder.php:30 {▼
› if (null === $name) {
› @trigger_error('A tree builder without a root node is deprecated since Symfony 4.2 and will not be supported anymore in 5.0.', E_USER_DEPRECATED);
› } else {
}
/home/user/foo/bar/project/vendor/sensio/framework-extra-bundle/DependencyInjection/Configuration.php:32 {▼
› {
› $treeBuilder = new TreeBuilder();
› $rootNode = $treeBuilder->root('sensio_framework_extra', 'array');
}
}
how to fix this?
vendor/sensio/framework-extra-bundle/DependencyInjection/Configuration.php
needs to be updated in this way - github.com/symfony/symfony/pull/27476/… It is probably forgotten when this deprecation was added – Stuffed