gpt4 book ai didi

symfony - Symfony 4.2 中没有根节点的树构建器

转载 作者:行者123 更新时间:2023-12-05 00:46:46 30 4
gpt4 key购买 nike

我将我的 Symfony 项目从 4.1 升级到 4.2,并在分析器中收到了 12 次此通知:

A tree builder without a root node is deprecated since Symfony 4.2 and will not be supported anymore in 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');
}
}

如何解决这个问题?

最佳答案

该问题已在 sensio/framework-extra-bundle 中修复:
https://github.com/sensiolabs/SensioFrameworkExtraBundle/issues/593

您必须等待下一次更新(更高的 5.2.2)。

关于symfony - Symfony 4.2 中没有根节点的树构建器,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/53665339/

30 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com