Zend certified PHP/Magento developer

Magento2.3.5pt2 – Errors with PHP 7.3 and Composer version 1, When trying to update a module via Composer on PHP 7.3

Everyone. I am running into problems with PHP 7.3 with Magneto2.3.5 and Composer version 1. Trying to update Active Campaign module via composer. COMPOSER_MEMORY_LIMIT=6G composer require activecampaign/module-integration We recently updated to PHP7.3 from PHP 7.2.

Now with PHP7.2 I can Composer update modules and it works. However, this module Active Campaign requires PHP7.3 and we are also getting ready to update our site to Mangento2.4 so we need to switch to PHP7.3 7.4 soon anyway and have composer work with that PHP version.

When I switch to PHP 7.3 to update the module via composer I get errors with

    - friendsofphp/php-cs-fixer v2.13.3 requires php ^5.6 || >=7.0 <7.3 -> your PHP version (7.3.29) does not satisfy that requirement

So then I go to update friendsofphp/php-cs-fixer module

Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - magento/magento2-functional-testing-framework 2.3.14 requires php 7.0.2|7.0.4|~7.0.6|~7.1.0|~7.2.0 -> your PHP version (7.3.29) does not satisfy that requirement.

So then I try updating both modules COMPOSER_MEMORY_LIMIT=6G composer require friendsofphp/php-cs-fixer:2.14.0 magento/magento2-functional-testing-framework:2.6.4

And I now get this error message and not sure what to do from here.


./composer.json has been updated
Loading composer repositories with package information
Warning from https://repo.packagist.org: Support for Composer 1 is deprecated and some packages will not be available. You should upgrade to Composer 2. See https://blog.packagist.com/deprecating-composer-1-support/
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - Installation request for magento/magento2-functional-testing-framework 2.6.4 -> satisfiable by magento/magento2-functional-testing-framework[2.6.4].
    - Conclusion: remove symfony/console v4.1.12
    - Conclusion: don't install symfony/console v4.1.12
    - magento/magento2-functional-testing-framework 2.6.4 requires symfony/console ^4.4 -> satisfiable by symfony/console[v4.4.0, v4.4.1, v4.4.10, v4.4.11, v4.4.12, v4.4.13, v4.4.14, v4.4.15, v4.4.16, v4.4.17, v4.4.18, v4.4.19, v4.4.2, v4.4.20, v4.4.21, v4.4.22, v4.4.23, v4.4.24, v4.4.25, v4.4.26, v4.4.27, v4.4.29, v4.4.3, v4.4.4, v4.4.5, v4.4.6, v4.4.7, v4.4.8, v4.4.9].
    - Can only install one of: symfony/console[v4.4.0, v4.1.12].
    - Can only install one of: symfony/console[v4.4.1, v4.1.12].
    - Can only install one of: symfony/console[v4.4.10, v4.1.12].
    - Can only install one of: symfony/console[v4.4.11, v4.1.12].
    - Can only install one of: symfony/console[v4.4.12, v4.1.12].
    - Can only install one of: symfony/console[v4.4.13, v4.1.12].
    - Can only install one of: symfony/console[v4.4.14, v4.1.12].
    - Can only install one of: symfony/console[v4.4.15, v4.1.12].
    - Can only install one of: symfony/console[v4.4.16, v4.1.12].
    - Can only install one of: symfony/console[v4.4.17, v4.1.12].
    - Can only install one of: symfony/console[v4.4.18, v4.1.12].
    - Can only install one of: symfony/console[v4.4.19, v4.1.12].
    - Can only install one of: symfony/console[v4.4.2, v4.1.12].
    - Can only install one of: symfony/console[v4.4.20, v4.1.12].
    - Can only install one of: symfony/console[v4.4.21, v4.1.12].
    - Can only install one of: symfony/console[v4.4.22, v4.1.12].
    - Can only install one of: symfony/console[v4.4.23, v4.1.12].
    - Can only install one of: symfony/console[v4.4.24, v4.1.12].
    - Can only install one of: symfony/console[v4.4.25, v4.1.12].
    - Can only install one of: symfony/console[v4.4.26, v4.1.12].
    - Can only install one of: symfony/console[v4.4.27, v4.1.12].
    - Can only install one of: symfony/console[v4.4.29, v4.1.12].
    - Can only install one of: symfony/console[v4.4.3, v4.1.12].
    - Can only install one of: symfony/console[v4.4.4, v4.1.12].
    - Can only install one of: symfony/console[v4.4.5, v4.1.12].
    - Can only install one of: symfony/console[v4.4.6, v4.1.12].
    - Can only install one of: symfony/console[v4.4.7, v4.1.12].
    - Can only install one of: symfony/console[v4.4.8, v4.1.12].
    - Can only install one of: symfony/console[v4.4.9, v4.1.12].
    - Installation request for symfony/console (locked at v4.1.12) -> satisfiable by symfony/console[v4.1.12].


Installation failed, reverting ./composer.json to its original content.

enter image description here

However, I now get this problem and do not know how to fix or get Composer version 1.10.22 to work with PHP 7.3 on Magento2.3.5pt1.

Composer json

{
    "name": "magento/project-community-edition",
    "description": "eCommerce Platform for Growth (Community Edition)",
    "type": "project",
    "license": [
        "OSL-3.0",
        "AFL-3.0"
    ],
    "config": {
        "preferred-install": "dist",
        "sort-packages": true
    },
    "require": {
        "amasty/base": "^1.12",
        "amasty/module-hide-price": "^1.5",
        "amasty/module-request-quote": "^2.3",
        "amasty/module-special-promo": "^2.9",
        "auctane/api": "^2.1",
        "authorizenet/authorizenet": "^2.0",
        "baldwin/magento2-module-url-data-integrity-checker": "^1.2",
        "dompdf/dompdf": "^1.0",
        "elgentos/regenerate-catalog-urls": "^0.2.4",
        "fooman/sameorderinvoicenumber-m2": "^3.0",
        "kiwicommerce/module-admin-activity": "^1.0",
        "kiwicommerce/module-cron-scheduler": "^1.0",
        "laminas/laminas-barcode": "^2.8",
        "laminas/laminas-dom": "^2.7",
        "magefan/module-conflict-detector": "^2.0",
        "magento/data-migration-tool": "2.3.1",
        "magento/inventory-composer-metapackage": "^1.1",
        "magento/product-community-edition": "2.3.5-p2",
        "mageplaza/magento-2-blog-extension": "^4.0",
        "mageplaza/module-delete-orders": "^1.2",
        "mageplaza/module-login-as-customer": "^1.0",
        "mageplaza/module-smtp": "^1.2",
        "mirasvit/module-stability": "*",
        "olegkoval/magento2-regenerate-url-rewrites": "^1.6",
        "route/route-m2": "^1.1",
        "ulmod/ordercomment": "^2.1",
        "webgility/webgility_eccm2": "1.0.4"
    },
    "require-dev": {
        "friendsofphp/php-cs-fixer": "~2.13.0",
        "lusitanian/oauth": "~0.8.10",
        "magento/magento2-functional-testing-framework": "~2.3.13",
        "pdepend/pdepend": "2.5.2",
        "phpmd/phpmd": "@stable",
        "phpunit/phpunit": "~6.5.0",
        "sebastian/phpcpd": "~3.0.0",
        "squizlabs/php_codesniffer": "3.3.1",
        "allure-framework/allure-phpunit": "~1.2.0"
    },
    "conflict": {
        "gene/bluefoot": "*"
    },
    "autoload": {
        "psr-4": {
            "Magento\Framework\": "lib/internal/Magento/Framework/",
            "Magento\Setup\": "setup/src/Magento/Setup/",
            "Magento\": "app/code/Magento/",
            "Zend\Mvc\Controller\": "setup/src/Zend/Mvc/Controller/"
        },
        "psr-0": {
            "": [
                "app/code/",
                "generated/code/"
            ]
        },
        "files": [
            "app/etc/NonComposerComponentRegistration.php"
        ],
        "exclude-from-classmap": [
            "**/dev/**",
            "**/update/**",
            "**/Test/**"
        ]
    },
    "autoload-dev": {
        "psr-4": {
            "Magento\Sniffs\": "dev/tests/static/framework/Magento/Sniffs/",
            "Magento\Tools\": "dev/tools/Magento/Tools/",
            "Magento\Tools\Sanity\": "dev/build/publication/sanity/Magento/Tools/Sanity/",
            "Magento\TestFramework\Inspection\": "dev/tests/static/framework/Magento/TestFramework/Inspection/",
            "Magento\TestFramework\Utility\": "dev/tests/static/framework/Magento/TestFramework/Utility/"
        }
    },
    "version": "2.3.1",
    "minimum-stability": "stable",
    "repositories": {
        "0": {
            "type": "composer",
            "url": "https://repo.magento.com/"
        },
        "magento": {
            "type": "composer",
            "url": "https://repo.magento.com"
        },
        "mirasvit-mss2": {
            "type": "composer",
            "url": "https://47158:NJ16TBVWYD@packages.mirasvit.com/47158:NJ16TBVWYD/"
        },
        "amasty": {
            "type": "composer",
            "url": "https://composer.amasty.com/community/"
        }
    },
    "extra": {
        "magento-force": "override"
    }
}

Any help on this would be much appreciated.