Magento2: Package fabpot/php-cs-fixer is abandoned

Created on 4 Nov 2016  Â·  14Comments  Â·  Source: magento/magento2

Receiving this error from composer on a fresh install of M2.1:
Package fabpot/php-cs-fixer is abandoned, you should avoid using it. Use friendsofphp/php-cs-fixer instead.

Preconditions

N/A

Steps to reproduce

  1. Install M2.1 via composer

Expected result

  1. This error shouldn't occur

Actual result

Package fabpot/php-cs-fixer is abandoned, you should avoid using it. Use friendsofphp/php-cs-fixer instead.

Fixed in 2.2.x Format is valid Reproduced on 2.1.x

All 14 comments

Why hasn't this been merged into the latest release?

This is merged in develop branch, so this is for Magento 2.2

Ok thank you

what is the solution to resolve this error ? I am getting the same error while executing the composer run command in magneto 2.1.6

Can anyone help
Thanks in Advance

@nafisakanwal You will have to edit your composer.json file, as mentioned in #4791

Hi, @quienti
I got the same error, when I executed the composer install -ignore-platform-reqs command in magento 2.1.6
As you mentioned, So I replaced fabpot/php-cs-fixer with friendsofphp/php-cs-fixer in composer.json.
But the error was same and it didn't work.
please, help me.
thanks.

Hi @costel-petrescu
This is not really an error, it is just a message who it said fabpot/php-cs-fixer is abandoned and should be changed with friendsofphp/php-cs-fixer.
But, in Magento 2.2, this message was removed because it was fixed

Your Magento 2.1.6 will to work with no problem normally ;)

But when installing magento, it occurs the error like "php version check" in the first step.
I think there is problem here.
Though my php version is not required at installing condition as 7.1.1, anayway i skipped it with the command "composer install --ignore-platform-reqs".
Do you think what is the reason?
please, give me the way to solve it.
Thanks.

You install Magento with the interface ?

If yes, I thinks you should use a good version of php (http://devdocs.magento.com/magento-system-requirements.html)

If you use command lines for install, there are a specific command lines with Magento (http://devdocs.magento.com/guides/v2.0/install-gde/install/cli/install-cli-subcommands.html)

After install was finished, if you want upgrade your php version, you can but I think is not recommanded because Magento 2.1.6 was not compatible

you're right. but i'm going to install magento via a localhost on xampp. PHP version is 7.1.1 on xampp.
In this case, shall i have to change the php version or magento version?
Required version is ~5.6.5|7.0.2|7.0.4|~7.0.6. Aren't there any other methods exception changing php version? please, explain the way how to install magento 2.1.6 on xampp in detail.
Best regards.

Hummm, normally, you should not change php version of Magento, because there are some change to do in code.
But you can change php version of xampp with a specific install (https://sourceforge.net/projects/xampp/files/?SetFreedomCookie)
In this link, you have all php version for xampp, I hope you can find your install

And how install Magento ?
Hummm, just with the interface, you can succeed with no problem

thanks for your help.

On Tue, May 23, 2017 at 11:56 AM, quienti notifications@github.com wrote:

Hummm, normally, you should not change php version of Magento, because
there are some change to do in code.
But you can change php version of xampp with a specific install (
https://sourceforge.net/projects/xampp/files/?SetFreedomCookie)
In this link, you have all php version for xampp, I hope you can find your
install

And how install Magento ?
Hummm, just with the interface, you can succeed with no problem

—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/magento/magento2/issues/7310#issuecomment-303334968,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AZkbKuo7XReLEv7IOPAYDMKFSK5w4PTrks5r8p83gaJpZM4KpZM1
.

cd /MAG/2/PATH
nano composer.json
DELETE THE LINE (CTRL + K)
"fabpot/php-cs-fixer": "~1.2",
SAVE (CTRL + O)
CLOSE nano (CTRL + X)
composer update
composer global require --dev friendsofphp/php-cs-fixer

Was this page helpful?
0 / 5 - 0 ratings