Magento2 udpate 2.4.6-P1 -> 2.4.7 给出 symfony/process/php 版本错误

问题描述 投票:0回答:1

尝试将magento更新到2.4.7,但遇到了这个php版本问题。所以:

cpcomposer.jsoncomposer.json.bak 作曲家需要 magento/composer-root-update-plugin ~2.0 --no-update 作曲家更新 作曲家要求商务 magento/product-community-edition 2.4.7 --no-update 作曲家更新

给出: 问题1 - symfony/process[v4.4.0, ..., v4.4.10] 需要 php ^7.1.3 -> 你的 php 版本 (8.1.27) 不满足该要求。 - magento/magento2-function-testing-framework[3.10.0, ..., 3.12.0] 需要 symfony/process ^4.4||^5.4 -> 可满足 symfony/process[v4.4.0, ..., v4 .4.44、v5.4.0、...、v5.4.39]。 - magento/magento2-function-testing-framework[3.7.0, ..., 3.9.0] 需要 symfony/process ^4.4 -> 可满足 symfony/process[v4.4.0, ..., v4.4.44]。 - 您只能安装一个软件包的一个版本,因此只能安装其中之一:symfony/process[2.0.4, ..., v2.8.52, v3.0.0, ..., v3.4.47, v4。 0.0,...,v4.4.44,v5.0.0,...,v5.4.39,v6.0.0,...,v6.4.7,v7.0.0,...,v7.0.7]。 - magento/product-community-edition 2.4.7 需要 symfony/process ^6.4 -> 可满足 symfony/process[v6.4.0, ..., v6.4.7]。 - 根composer.json需要magento/product-community-edition 2.4.7 -> 可满足magento/product-community-edition[2.4.7]。 - 根composer.json需要magento/magento2-function-testing-framework ^3.7 -> 可满足magento/magento2-function-testing-framework[3.7.0, ..., 3.12.0]。

那么如何进行更新?

magento2 symfony-process
1个回答
-1
投票

您需要在您的composer.json中添加以下扩展

“要求”:{ "symfony/console": "^6.4", "symfony/intl": "^6.4", "symfony/process": "^6.4", “symfony/字符串”:“^6.4” },

“要求开发”:{ "allure-framework/allure-phpunit": "^2", "dealerdirect/phpcodesniffer-composer-installer": "^0.7 || ^1.0", "dg/bypass-finals": "^1.4", "friendsofphp/php-cs-fixer": "^3.22", "卢西塔尼亚/oauth": "^0.8", "magento/magento 编码标准": "*", "magento/magento2-功能测试-框架": "^4.7", "pdepend/pdepend": "^2.10", "phpmd/phpmd": "^2.12", "phpstan/phpstan": "^1.9", "phpunit/phpunit": "^9.5", "塞巴斯蒂安/phpcpd": "^6.0", “symfony/finder”:“^6.4” }

运行作曲家更新

© www.soinside.com 2019 - 2024. All rights reserved.