At first A HAPPY NEW YEAR TO ALL OF YOU GUYS pulling your hair enjoying Magento.
Craig in recent days I tried to upgrade my PHP to 7.3. I followed this posts, The process was pretty simple. Copy and paste your command using a superuser.
I haven’t spotted any issues during the upgrade. Then I upgraded one of my Amnasty modules. When I run the bin/magento setup:upgrade command the following warring message was shown.
The error doesn’t look to be related to Amnasty extension. Maybe the friendsofphp/php-cs-fixer v2.13.3 is Magento itself related?
I never installed it.
Can you give me a tip on how to fix it?
Check what this is responsible for? I’m guessing that I should upgrade the frindsofphp/php-cs-fixer to a newer version which is compatible with php7.3 and than upgrade my php.
(I forgot to mention that prior to the upgrade I contacted all my 3rd party module releasers and asked them if their modules are compatible with PHP 7.3. All confirmed that their products are compatible with PHP 7.3)
I’m pretty sure that friendsofphp/php-cs-fixer is a Magento dependency as I’ve found the same entry in my composer.json file in both my 2.2.x and 2.3.x installations. It’s used to automatically fix PHP Coding Standards issues.
The latest stable version is 2.16.1 released back in November. So, you might want to try updating that, as your version of 2.13.3 was released back in April. Once that blocker is out the way then you should be good to go.
I suspect your version of friendsofphp/php-cs-fixer is locked to the 2.13.x branch. Therefore, you might have to specify the version number when you run the composer require command for it.
Side Note: I wrote this reply before reading your other post… You got to the same conclusion
I recently ran into this issue myself. Here’s what I learned…
friendsofphp/php-cs-fixer is a package used for development, so is not necessary required in a production environment.
For whatever reason, Magento might not have updated your composer.json file with the appropriate version changes in previous updates.
You cannot simply update this to the latest version as other dependency modules will then fail.
Having learned this, I came up with the following solution that appears to work in limited testing that I did.
So, in the latest GitHub Repo (2.3.6), the composer.json file contains the correct "require-dev" modules and version numbers. So, go ahead and copy/replace that block with whatever you have in your own "require-dev" block in your composer.json file.