Php-cs-fixer: V2 downloaded but I got V1

Created on 20 Aug 2017  路  10Comments  路  Source: FriendsOfPHP/PHP-CS-Fixer

I download v2 but I got the version 1.13.1.

$ wget http://cs.sensiolabs.org/download/php-cs-fixer-v2.phar -O php-cs-fixer && chmod +x php-cs-fixer
$ ./php-cs-fixer --version

You are running PHP CS Fixer v1, which is not maintained anymore. Please update to v2.
If you need help while solving warnings, ask at https://gitter.im/FriendsOfPHP/PHP-CS-Fixer, we will help you!
PHP CS Fixer version 1.13.2 by Fabien Potencier and Dariusz Ruminski (106313a)

If I specify the version, It's OK.

$ wget https://github.com/FriendsOfPHP/PHP-CS-Fixer/releases/download/v2.4.0/php-cs-fixer.phar -O php-cs-fixer && chmod +x php-cs-fixer
$ ./php-cs-fixer --version
PHP CS Fixer 2.4.0 Silver Gingerbread by Fabien Potencier and Dariusz Ruminski (63661f3)

Most helpful comment

issue fixed by releasing new version of 2.x, closing.

for mechanism preventing issue to happen again, please created dedicated issue.

All 10 comments

Thanks for reporting! I've confirmed this.

This seems to be an hosting issue therefor I'm pinging @keradus as I believe he is the one who might be able to fix it.

I can confirm it. automate website update was not prepared to handle v1 releases anymore, and we just release v1.13.x.
Let me retrigger the website update.

Done.
Thanks

Confirmed.
Thanks

Hi!
The "selfupdate" method still download the v1.13,2 over the v2.4...
Best Regards,
LBF

will be fixed by newest release of 2.x

This is still happening for me.

yeah sorry about that, will be fixed after next 2.x release which should be soon, we all hope ;)

I reopen this issue because a new release will not fix the issue but simply hide it, we should provide a proper fix too.

issue fixed by releasing new version of 2.x, closing.

for mechanism preventing issue to happen again, please created dedicated issue.

Was this page helpful?
0 / 5 - 0 ratings