Magento 2.4 - Composer php 7.4 error magento/magento2-functional-testing-framework
-
14-04-2021 - |
题
We run Magento 2.4 with php7.4, that should be supported. But we get the following error when we try to update a module using composer:
magento/magento2-functional-testing-framework 2.6.5 requires php ~7.1.0||~7.2.0||~7.3.0 -> your PHP version (7.4.7) does not satisfy that requirement.
Installation request for magento/magento2-functional-testing-framework (locked at 2.6.5, required as ~2.6.4) -> satisfiable by magento/magento2-functional-testing-framework[2.6.5]
How can we solve this?
解决方案
Update to "~3.1.0". You can get list of available versions like this
composer show magento/magento2-functional-testing-framework 3.*.* --all | grep -m 1 versions
其他提示
if you look at magento 2.4 open source composer files, you will find
https://github.com/magento/magento2/blob/445b0f1a3d6a91b5da32d311077c2112ef0b1503/composer.json#L117
so try 3.0 version