A.S*_*ghi 4 configuration upgrade symfony symfony4
我将Symfony项目从4.1升级到4.2,并在事件探查器中得到12次通知:
自Symfony 4.2起,不支持没有根节点的树生成器,并且5.0中不再支持该树生成器。
日志的跟踪为:
{?
/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');
}
}
Run Code Online (Sandbox Code Playgroud)
如何解决这个问题?
小智 5
该问题已在sensio / framework-extra-bundle中修复:https : //github.com/sensiolabs/SensioFrameworkExtraBundle/issues/593
您必须等待下一次更新(更高的5.2.2)。
| 归档时间: |
|
| 查看次数: |
2356 次 |
| 最近记录: |